diff options
Diffstat (limited to 'proxy.c')
| -rw-r--r-- | proxy.c | 9 |
1 files changed, 3 insertions, 6 deletions
| @@ -25,6 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | /* Opentracker */ | 26 | /* Opentracker */ |
| 27 | #include "ot_mutex.h" | 27 | #include "ot_mutex.h" |
| 28 | #include "ot_random.h" | ||
| 28 | #include "ot_stats.h" | 29 | #include "ot_stats.h" |
| 29 | #include "ot_vector.h" | 30 | #include "ot_vector.h" |
| 30 | #include "trackerlogic.h" | 31 | #include "trackerlogic.h" |
| @@ -563,12 +564,8 @@ int main(int argc, char **argv) { | |||
| 563 | uint16_t tmpport; | 564 | uint16_t tmpport; |
| 564 | int scanon = 1, lbound = 0, sbound = 0; | 565 | int scanon = 1, lbound = 0, sbound = 0; |
| 565 | 566 | ||
| 566 | srandom(time(NULL)); | 567 | random_init(); |
| 567 | #ifdef WANT_ARC4RANDOM | 568 | g_tracker_id = random_uint32(); |
| 568 | g_tracker_id = arc4random(); | ||
| 569 | #else | ||
| 570 | g_tracker_id = random(); | ||
| 571 | #endif | ||
| 572 | 569 | ||
| 573 | while (scanon) { | 570 | while (scanon) { |
| 574 | switch (getopt(argc, argv, ":l:c:L:h")) { | 571 | switch (getopt(argc, argv, ":l:c:L:h")) { |
