From 65ccf88feb52caeabcf2226c6e9ca4232f623519 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 24 Feb 2009 22:36:20 +0000 Subject: fix non-randomness of TMSI by seeding the PRNG. Later we should use openssl --- src/bsc_hack.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/bsc_hack.c') diff --git a/src/bsc_hack.c b/src/bsc_hack.c index a76e290ab..c99159c7e 100644 --- a/src/bsc_hack.c +++ b/src/bsc_hack.c @@ -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); -- cgit v1.2.3