diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2021-04-20 04:05:50 +0200 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2021-04-20 04:05:50 +0200 |
commit | b73b3b17ccf02337fb07f5ae78d78c2ff1dc3ccc (patch) | |
tree | 1ab5ec163419a5e6d275e0c5841e319c5a24976b /proxy.c | |
parent | ccef1d0ccd0965ce91b2a439866dc1bd8301883d (diff) |
Use arc4random whereever we need strong entropy
Diffstat (limited to 'proxy.c')
-rw-r--r-- | proxy.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -553,7 +553,11 @@ int main( int argc, char **argv ) { | |||
553 | int scanon = 1, lbound = 0, sbound = 0; | 553 | int scanon = 1, lbound = 0, sbound = 0; |
554 | 554 | ||
555 | srandom( time(NULL) ); | 555 | srandom( time(NULL) ); |
556 | #ifdef WANT_ARC4RANDOM | ||
557 | g_tracker_id = arc4random(); | ||
558 | #else | ||
556 | g_tracker_id = random(); | 559 | g_tracker_id = random(); |
560 | #endif | ||
557 | noipv6=1; | 561 | noipv6=1; |
558 | 562 | ||
559 | while( scanon ) { | 563 | while( scanon ) { |