HomeFreeBSD

1) Unifdef USE_WEAK_SEEDING it is too obsolete to support and makes reading

Description

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

harder.

  1. ACM paper require seed to be in [1, 2^31-2] range, so use the same range

shifting as already done for rand(3). Also protect srandomdev() + TYPE_0 case
(non default) from negative seeds.

  1. Don't check for valid "type" range in setstate(), it is always valid as

calculated. Instead add a check that rear pointer not exceeed end pointer.

MFC after: 1 week

Details

Provenance
acheAuthored on
Parents
rS300952: Invoke the dirname() function in a POSIX compliant way.
Branches
Unknown
Tags
Unknown