mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
format changes to VXWORKS GenerateSeed()
This commit is contained in:
@@ -1274,13 +1274,13 @@ int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
|||||||
unsigned char seed[1024];
|
unsigned char seed[1024];
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
for (i=0; i < sizeof(seed); i++) {
|
for (i = 0; i < sizeof(seed); i++) {
|
||||||
seed[i]= i*3%256;
|
seed[i] = i * 3 % 256;
|
||||||
}
|
}
|
||||||
/* build entropy */
|
/* build entropy */
|
||||||
(void) randAdd(seed, 0, 0);
|
(void) randAdd(seed, 0, 0);
|
||||||
for (i=4; i<=sizeof(seed); i*=2) {
|
for (i = 4; i <= sizeof(seed); i*=2) {
|
||||||
(void) randAdd (seed, i-1, i);
|
(void) randAdd (seed, i - 1, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
status = randBytes (output, sz);
|
status = randBytes (output, sz);
|
||||||
|
Reference in New Issue
Block a user