Note about drgNewTest and endianness

This commit is contained in:
Olivier Chéron 2020-07-05 08:48:34 +02:00
parent 9eadf707c4
commit 81cc351800

View File

@ -84,6 +84,9 @@ drgNewSeed (Seed seed) = initialize seed
-- Note that the @Arbitrary@ instance provided by QuickCheck for 'Word64' does
-- not have a uniform distribution. It is often better to use instead
-- @arbitraryBoundedRandom@.
--
-- System endianness impacts how the tuple is interpreted and therefore changes
-- the resulting DRG.
drgNewTest :: (Word64, Word64, Word64, Word64, Word64) -> ChaChaDRG
drgNewTest = initializeWords