forked from wolfSSL/wolfssl
random.c, indentation
This commit is contained in:
@ -506,22 +506,21 @@ int GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
|||||||
} while(size) ;
|
} while(size) ;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#else /* CYASSL_MIC32MZ_RNG */
|
#else /* CYASSL_MIC32MZ_RNG */
|
||||||
/* uses the core timer, in nanoseconds to seed srand */
|
/* uses the core timer, in nanoseconds to seed srand */
|
||||||
int GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
int GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
srand(PIC32_SEED_COUNT() * 25);
|
|
||||||
|
|
||||||
for (i = 0; i < sz; i++ ) {
|
|
||||||
output[i] = rand() % 256;
|
|
||||||
if ( (i % 8) == 7)
|
|
||||||
srand(PIC32_SEED_COUNT() * 25);
|
srand(PIC32_SEED_COUNT() * 25);
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
for (i = 0; i < sz; i++ ) {
|
||||||
}
|
output[i] = rand() % 256;
|
||||||
#endif /* CYASSL_MIC32MZ_RNG */
|
if ( (i % 8) == 7)
|
||||||
|
srand(PIC32_SEED_COUNT() * 25);
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif /* CYASSL_MIC32MZ_RNG */
|
||||||
#elif defined(CYASSL_SAFERTOS) || defined(CYASSL_LEANPSK) \
|
#elif defined(CYASSL_SAFERTOS) || defined(CYASSL_LEANPSK) \
|
||||||
|| defined(CYASSL_IAR_ARM)
|
|| defined(CYASSL_IAR_ARM)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user