HomeFreeBSD

abort in srandomdev if kern.arandom sysctl fails

Description

abort in srandomdev if kern.arandom sysctl fails

The sysctl cannot fail. If it does fail on some FreeBSD derivative or
after some future change, just abort() so that the problem will be found
and fixed.

While abort() is not normally suitable for a library, it makes sense
here.

This is akin to r306636 for arc4random.

Reviewed by: ed
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D8077

Details

Provenance
emasteAuthored on
Reviewer
ed
Differential Revision
D8077: libc arc4_stir: use only kern.arandom sysctl
Parents
rS306707: Fix naming in Casper man page.
Branches
Unknown
Tags
Unknown