@@ -28,12 +28,12 @@ import System.EntropyNix
29import qualified Data.ByteString as B
29import qualified Data.ByteString as B
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.
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