HomeFreeBSD

MFC: r300956

Description

MFC: r300956

  1. Unifdef USE_WEAK_SEEDING since it is too obsolete to support and makes

reading hard.

  1. Instead of doing range transformation in each and every function here,

do it single time directly in do_rand(). One "mod" operation overhead is not
a big deal, but the code looks nicer and possible future functions additions
or PRNG change do not miss range transformations neither have unneeded ones.

  1. Use POSIX argument types for visible functions (cosmetic).

Details

Provenance
acheAuthored on
Parents
rS301444: Prepare for merge of r300956. One year old r288030 which fix prototypes
Branches
Unknown
Tags
Unknown