routed(8): Use arc4random.
CID: 1305962 Obtained from: NetBSD (CVS Rev. 1.34, Itojun)
This commit is contained in:
parent
52bef765d7
commit
365cb451d3
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user