diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-05-14 23:22:19 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-05-14 23:22:19 +0000 |
commit | 365cb451d3411af648598b406aa790264dcd0238 (patch) | |
tree | ca5556277c19fbcbade8aee49448d1a29283bb1a /sbin/routed | |
parent | 52bef765d70e630b41c5168e94831899877a4db1 (diff) | |
download | src-365cb451d3411af648598b406aa790264dcd0238.tar.gz src-365cb451d3411af648598b406aa790264dcd0238.zip |
routed(8): Use arc4random.
CID: 1305962
Obtained from: NetBSD (CVS Rev. 1.34, Itojun)
Notes
Notes:
svn path=/head/; revision=299777
Diffstat (limited to 'sbin/routed')
-rw-r--r-- | sbin/routed/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/routed/main.c b/sbin/routed/main.c index 226fe70d9101..a6202fb7fcfa 100644 --- a/sbin/routed/main.c +++ b/sbin/routed/main.c @@ -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; } |