diff options
author | Benjamin Barenblat <bbaren@google.com> | 2018-08-31 17:22:42 -0400 |
---|---|---|
committer | Benjamin Barenblat <bbaren@google.com> | 2018-08-31 17:22:42 -0400 |
commit | 1349d89b03ccdae4594e3e5605eec83bc4efddb4 (patch) | |
tree | b2e4f2b513f47c103d162a8b3172a675506f587c /src/System/Random/Crypto.hs | |
parent | c9eb11a8b685dffa9035f324ca11a727cd16a128 (diff) |
Remove some unnecessary `fromIntegral`s
Diffstat (limited to 'src/System/Random/Crypto.hs')
-rw-r--r-- | src/System/Random/Crypto.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System/Random/Crypto.hs b/src/System/Random/Crypto.hs index 903f7aa..ed5706d 100644 --- a/src/System/Random/Crypto.hs +++ b/src/System/Random/Crypto.hs @@ -26,5 +26,5 @@ import BTLS.Buffer (packCUStringLen) randomBytes :: Int -> IO ByteString randomBytes len = allocaArray len $ \pBuf -> do - randBytes pBuf (fromIntegral len) + randBytes pBuf len packCUStringLen (pBuf, len) |