Hoogle Search
Within LTS Haskell 24.2 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
randomBS :: CryptoRandomGen g => g -> Int -> Either RSAError (ByteString, g)RSA Codec.Crypto.RSA.Pure Generate a random ByteString of the given length
randomNZBS :: CryptoRandomGen g => g -> Int -> Either RSAError (ByteString, g)RSA Codec.Crypto.RSA.Pure Create a random bytestring of non-zero bytes of the given length.
randomizeContext :: Ctx -> IO ()secp256k1-haskell Crypto.Secp256k1 No documentation available.
randomizeContext :: Ctx -> IO ()secp256k1-haskell Crypto.Secp256k1.Internal.Context No documentation available.
randomByteString :: Int -> IO ByteStringsaltine Crypto.Saltine.Core.Utils Build a sized random ByteString using Sodium's bindings to devurandom.
randomByteString :: Int -> IO ByteStringsaltine Crypto.Saltine.Internal.Util Build a sized random ByteString using Sodium's bindings to devurandom.
-
crypton Crypto.Random A simple Monad class very similar to a State Monad with the state being a DRG.
class Monad m =>
MonadRandom (m :: Type -> Type)crypton Crypto.Random A monad constraint that allows to generate random bytes
getRandomBytes :: (MonadRandom m, ByteArray byteArray) => Int -> m byteArraycrypton Crypto.Random No documentation available.
withRandomBytes :: (ByteArray ba, DRG g) => g -> Int -> (ba -> a) -> (a, g)crypton Crypto.Random Generate len random bytes and mapped the bytes to the function f. This is equivalent to use Control.Arrow first with randomBytesGenerate