fix non-randomness of TMSI by seeding the PRNG. Later we should use openssl

This commit is contained in:
Harald Welte 2009-02-24 22:36:20 +00:00
parent 41fbf443a0
commit 65ccf88feb
1 changed files with 3 additions and 0 deletions

View File

@ -1076,6 +1076,9 @@ int main(int argc, char **argv)
}
printf("DB: Database prepared.\n");
/* seed the PRNG */
srand(time(NULL));
rc = bootstrap_network();
if (rc < 0)
exit(1);