git.iko.soy/typeable/entropy
on main help sign in
Fix documentation - the documentation has lagged behind the implementation.
3622dafThomas M. DuBuisson
System/Entropy.hs+4−4
@@ -28,12 +28,12 @@ import System.EntropyNix
28
28
29import qualified Data.ByteString as B
29import qualified Data.ByteString as B
30
30
31−-- |Inefficiently get a specific number of bytes of cryptographically
31+-- |Get a specific number of bytes of cryptographically
32-- secure random data using the system-specific facilities.
32-- secure random data using the system-specific facilities.
33--
33--
34−-- Use '/dev/urandom' on *nix and CryptAPI when on Windows. In short,
34+-- Use RDRAND if available or '/dev/urandom' on *nix and CryptAPI when on
35−-- this entropy is considered cryptographically secure but not true
35+-- Windows. In short, this entropy is considered cryptographically secure
36−-- entropy.
36+-- but not true entropy.
37getEntropy :: Int -> IO B.ByteString
37getEntropy :: Int -> IO B.ByteString
38getEntropy n = do
38getEntropy n = do
39 h <- openHandle
39 h <- openHandle