routed(8): Use arc4random.

CID:		1305962
Obtained from:	NetBSD (CVS Rev. 1.34, Itojun)
This commit is contained in:
Pedro F. Giffuni 2016-05-14 23:22:19 +00:00
parent 52bef765d7
commit 365cb451d3

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;
}