Page MenuHomeFreeBSD

random: Avoid magic numbers
ClosedPublic

Authored by cperciva on Sep 18 2024, 5:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 27, 10:46 PM
Unknown Object (File)
Tue, Nov 11, 12:14 AM
Unknown Object (File)
Wed, Nov 5, 12:03 PM
Unknown Object (File)
Wed, Nov 5, 7:22 AM
Unknown Object (File)
Tue, Nov 4, 4:54 AM
Unknown Object (File)
Tue, Nov 4, 4:54 AM
Unknown Object (File)
Tue, Nov 4, 4:54 AM
Unknown Object (File)
Tue, Nov 4, 4:53 AM
Subscribers

Details

Summary

Move RANDOM_FORTUNA_{NPOOLS,DEFPOOLSIZE} from fortuna.c to fortuna.h
and use RANDOM_FORTUNA_DEFPOOLSIZE in random_harvestq.c rather than
having a magic (albeit explained in a comment) number. The NPOOLS
value will be used in a later commit.

Sponsored by: Amazon

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable