Page MenuHomeFreeBSD

random: Avoid magic numbers
ClosedPublic

Authored by cperciva on Sep 18 2024, 5:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 10, 3:40 AM
Unknown Object (File)
Wed, Dec 18, 10:40 AM
Unknown Object (File)
Nov 21 2024, 6:33 AM
Unknown Object (File)
Nov 12 2024, 3:21 AM
Unknown Object (File)
Nov 2 2024, 8:26 PM
Unknown Object (File)
Oct 26 2024, 4:44 PM
Unknown Object (File)
Oct 26 2024, 7:51 AM
Unknown Object (File)
Oct 19 2024, 11:10 PM
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