HomeFreeBSD

routed(8): Use arc4random_uniform instead of arc4random.

Description

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)

Details

Provenance
pfgAuthored on
Parents
rS299844: Make hostid_save depend on hostid
Branches
Unknown
Tags
Unknown