]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
routed(8): Use arc4random_uniform instead of arc4random.
authorpfg <pfg@FreeBSD.org>
Sun, 15 May 2016 06:06:22 +0000 (06:06 +0000)
committerpfg <pfg@FreeBSD.org>
Sun, 15 May 2016 06:06:22 +0000 (06:06 +0000)
commitec09ab4e99768d7661a816af2bc3e104ae4db1ae
treebaa3a491e472d051dbed020ba4dd50840c540372
parent063f41234ab9e67bcaca772e6a93fed576feab34
routed(8): Use arc4random_uniform instead of arc4random.

Use arc4random_uniform() when the desired random number upper bound
is not a power of two.

While here, we don't need srandom() and friends anymore.

Obtained from: OpenBSD (CVS rev. 1.20)
sbin/routed/main.c