diff options
Diffstat (limited to 'testcode/streamtcp.c')
-rw-r--r-- | testcode/streamtcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testcode/streamtcp.c b/testcode/streamtcp.c index c5919428a52e..b78506beb5df 100644 --- a/testcode/streamtcp.c +++ b/testcode/streamtcp.c @@ -265,7 +265,7 @@ static int get_random(void) if (RAND_bytes((unsigned char*)&r, (int)sizeof(r)) == 1) { return r; } - return (int)random(); + return arc4random(); } /** send the TCP queries and print answers */ |