Class VnExtractor
java.lang.Object
io.github.olyutorskii.aletojio.shrink.VnExtractor
- All Implemented Interfaces:
RndInt32
Von Neumann randomness extractor (whitening).
Crunching input data by an average of 50% and improve output data randomness bias.
- ...00... → ×
- ...01... → 0
- ...10... → 1
- ...11... → ×
Random number output throughput decreases half.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Return next random number as 32bit int with random sign-bit.
-
Constructor Details
-
VnExtractor
Constructor.- Parameters:
rnd
- random generator- Throws:
NullPointerException
- null argument
-
-
Method Details