routed(8): Use arc4random.
CID: 1305962 Obtained from: NetBSD (CVS Rev. 1.34, Itojun)
This commit is contained in:
parent
2da9b89141
commit
1552c80595
@ -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…
x
Reference in New Issue
Block a user