git.iko.soy/typeable/entropy
on main help sign in
Fix documentation - the documentation has lagged behind the implementation.
commit3622daf8fe005a5122d513fdbd47f7b5159c0b93 authorThomas M. DuBuisson <tommd@galois.com> dateTue 15 Jul 2014, 10:47 (12 years ago) parentf5d05f1
1 file changed+4−4
System/Entropy.hs+4−4
System/Entropy.hs+4−4
@@ -28,12 +28,12 @@ import System.EntropyNix
2828
2929import qualified Data.ByteString as B
3030
31−-- |Inefficiently get a specific number of bytes of cryptographically
31+-- |Get a specific number of bytes of cryptographically
3232-- secure random data using the system-specific facilities.
3333--
34−-- Use '/dev/urandom' on *nix and CryptAPI when on Windows. In short,
35−-- this entropy is considered cryptographically secure but not true
36−-- entropy.
34+-- Use RDRAND if available or '/dev/urandom' on *nix and CryptAPI when on
35+-- Windows. In short, this entropy is considered cryptographically secure
36+-- but not true entropy.
3737getEntropy :: Int -> IO B.ByteString
3838getEntropy n = do
3939 h <- openHandle