422c457b214cdf7360eed0814ca9929746f13a1f8b024cb2c506b8991c1672df
Created: 2019-10-12 06:53:48.403379 UTC
Size: 932
Preview (limited to 512 bytes)
"{-# LANGUAGE CPP, ForeignFunctionInterface #-}\n#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 702\n{-# LANGUAGE Trustworthy #-}\n#endif\n\nmodule Data.Hashable.RandomSource\n (\n getRandomBytes\n , getRandomBytes_\n ) where\n\nimport Data.ByteString as B\nimport Data.ByteString.Internal (create)\nimport Foreign.C.Error (throwErrnoIfMinus1_)\n#if MIN_VERSION_base(4,5,0)\nimport Foreign.C.Types (CInt(CInt))\n#else\nimport Foreign.C.Types (CInt)\n#endif\nimport Foreign.Ptr (Ptr)\n\ngetRandomBytes :: Int "
A service provided by FP Complete