got rid of avltree-stuff

FossilOrigin-Name: 41573b74d0d433b2e62feb78e580cbb351fee08b441e6735237cd3201a49a4e4
This commit is contained in:
tobias.herre@wikimedia.de
2018-03-06 17:28:31 +00:00
parent e50b8b29b0
commit cad0c6ab18
27 changed files with 60 additions and 147 deletions

View File

@ -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();
}