got rid of avltree-stuff
FossilOrigin-Name: 41573b74d0d433b2e62feb78e580cbb351fee08b441e6735237cd3201a49a4e4
This commit is contained in:
@ -67,6 +67,8 @@ int cw_rand_r(uint8_t * dst, int len)
|
||||
int cw_rand(uint8_t * dst, int len)
|
||||
{
|
||||
static uint32_t rinit = 0;
|
||||
int i;
|
||||
|
||||
if (!rinit) {
|
||||
|
||||
int l = cw_rand_r((uint8_t *) (&rinit), sizeof(uint32_t));
|
||||
@ -79,7 +81,7 @@ int cw_rand(uint8_t * dst, int len)
|
||||
|
||||
srand(rinit);
|
||||
}
|
||||
int i;
|
||||
|
||||
for (i = 0; i < len; i++) {
|
||||
dst[i] = rand();
|
||||
}
|
||||
|
Reference in New Issue
Block a user