From 81cc3518007309d915cd70ff84e30248a6acaad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Ch=C3=A9ron?= Date: Sun, 5 Jul 2020 08:48:34 +0200 Subject: [PATCH] Note about drgNewTest and endianness --- Crypto/Random.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Crypto/Random.hs b/Crypto/Random.hs index 4cea74b..28d99ef 100644 --- a/Crypto/Random.hs +++ b/Crypto/Random.hs @@ -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