routed(8): Use arc4random.

CID:		1305962
Obtained from:	NetBSD (CVS Rev. 1.34, Itojun)
This commit is contained in:
pfg 2016-05-14 23:22:19 +00:00
parent 2da9b89141
commit 1552c80595

View File

@ -826,8 +826,8 @@ intvl_random(struct timeval *tp, /* put value here */
{
tp->tv_sec = (time_t)(hi == lo
? lo
: (lo + random() % ((hi - lo))));
tp->tv_usec = random() % 1000000;
: (lo + arc4random() % ((hi - lo))));
tp->tv_usec = arc4random() % 1000000;
}