diff options
| author | erdgeist <> | 2012-06-03 00:15:59 +0000 |
|---|---|---|
| committer | erdgeist <> | 2012-06-03 00:15:59 +0000 |
| commit | 7e2bef9bf77d101e10f0f0ec38b014814177f7e3 (patch) | |
| tree | 94e8a31e0749b4956c8e2b1d29e30ad0d3e5335b | |
| parent | eed4a422923a073e665600f2cf1e6c62d7f1ee59 (diff) | |
Dont ruin the srandomdev initialisation in trackerlogic's init
| -rw-r--r-- | trackerlogic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/trackerlogic.c b/trackerlogic.c index 7ae9bb1..310466c 100644 --- a/trackerlogic.c +++ b/trackerlogic.c | |||
| @@ -411,13 +411,12 @@ void exerr( char * message ) { | |||
| 411 | } | 411 | } |
| 412 | 412 | ||
| 413 | void trackerlogic_init( ) { | 413 | void trackerlogic_init( ) { |
| 414 | srandom( time(NULL) ); | ||
| 415 | g_tracker_id = random(); | 414 | g_tracker_id = random(); |
| 416 | 415 | ||
| 417 | if( !g_stats_path ) | 416 | if( !g_stats_path ) |
| 418 | g_stats_path = "stats"; | 417 | g_stats_path = "stats"; |
| 419 | g_stats_path_len = strlen( g_stats_path ); | 418 | g_stats_path_len = strlen( g_stats_path ); |
| 420 | 419 | ||
| 421 | /* Initialise background worker threads */ | 420 | /* Initialise background worker threads */ |
| 422 | mutex_init( ); | 421 | mutex_init( ); |
| 423 | clean_init( ); | 422 | clean_init( ); |
