Hoogle Search
Within LTS Haskell 24.1 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
withSystemRandom :: (GenIO -> IO a) -> IO apcg-random System.Random.PCG Seed with system random number. (/dev/urandom on Unix-like systems and CryptAPI on Windows).
-
pcg-random System.Random.PCG.Class Generate a random number using System.Entropy. Use RDRAND if available and XOR with /dev/urandom on Unix and CryptAPI on Windows. This entropy is considered cryptographically secure but not true entropy.
createSystemRandom :: IO GenIOpcg-random System.Random.PCG.Fast Seed a PRNG with data from the system's fast source of pseudo-random numbers. All the caveats of withSystemRandom apply here as well.
withSystemRandom :: (GenIO -> IO a) -> IO apcg-random System.Random.PCG.Fast Seed with system random number. (/dev/urandom on Unix-like systems and CryptAPI on Windows).
createSystemRandom :: IO GenIOpcg-random System.Random.PCG.Fast.Pure Seed a PRNG with data from the system's fast source of pseudo-random numbers. All the caveats of withSystemRandom apply here as well.
withSystemRandom :: (GenIO -> IO a) -> IO apcg-random System.Random.PCG.Fast.Pure Seed with system random number. ("/dev/urandom" on Unix-like systems, time otherwise).
createSystemRandom :: IO GenIOpcg-random System.Random.PCG.Pure Seed with system random number. (/dev/urandom on Unix-like systems and CryptAPI on Windows).
withSystemRandom :: (GenIO -> IO a) -> IO apcg-random System.Random.PCG.Pure Seed with system random number. (/dev/urandom on Unix-like systems and CryptAPI on Windows).
createSystemRandom :: IO GenIOpcg-random System.Random.PCG.Single Seed a PRNG with data from the system's fast source of pseudo-random numbers. All the caveats of withSystemRandom apply here as well.
withSystemRandom :: (GenIO -> IO a) -> IO apcg-random System.Random.PCG.Single Seed with system random number. (/dev/urandom on Unix-like systems and CryptAPI on Windows).