summaryrefslogtreecommitdiff
path: root/proxy.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2021-04-20 04:05:50 +0200
committerDirk Engling <erdgeist@erdgeist.org>2021-04-20 04:05:50 +0200
commitb73b3b17ccf02337fb07f5ae78d78c2ff1dc3ccc (patch)
tree1ab5ec163419a5e6d275e0c5841e319c5a24976b /proxy.c
parentccef1d0ccd0965ce91b2a439866dc1bd8301883d (diff)
Use arc4random whereever we need strong entropy
Diffstat (limited to 'proxy.c')
-rw-r--r--proxy.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/proxy.c b/proxy.c
index 1f09777..640958a 100644
--- a/proxy.c
+++ b/proxy.c
@@ -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 ) {