commit | 65ccf88feb52caeabcf2226c6e9ca4232f623519 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Tue Feb 24 22:36:20 2009 +0000 |
committer | Harald Welte <laforge@gnumonks.org> | Tue Feb 24 22:36:20 2009 +0000 |
tree | 419694b7af295f5aca726bf1e228b6e2c712c91a | |
parent | 41fbf443a06c3d2c412a6c26507ea99f023e8b7c [diff] [blame] |
fix non-randomness of TMSI by seeding the PRNG. Later we should use openssl
diff --git a/src/bsc_hack.c b/src/bsc_hack.c index a76e290..c99159c 100644 --- a/src/bsc_hack.c +++ b/src/bsc_hack.c
@@ -1076,6 +1076,9 @@ } printf("DB: Database prepared.\n"); + /* seed the PRNG */ + srand(time(NULL)); + rc = bootstrap_network(); if (rc < 0) exit(1);