Skip to content

Commit 0f85e4f

Browse files
authored
Merge pull request depressed-pho#5 from Pamelloes/patch-1
Make prandInteger functions use BN_pseudo_rand_range
2 parents ba4aa48 + 2cc4496 commit 0f85e4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OpenSSL/BN.hsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ prandIntegerUptoNMinusOneSuchThat :: (Integer -> Bool) -- ^ a filter function
339339
prandIntegerUptoNMinusOneSuchThat f range = withBN range (\bnRange -> (do
340340
r <- newBN 0
341341
let try = do
342-
_BN_rand_range (unwrapBN r) (unwrapBN bnRange) >>= failIf_ (/= 1)
342+
_BN_pseudo_rand_range (unwrapBN r) (unwrapBN bnRange) >>= failIf_ (/= 1)
343343
i <- bnToInteger r
344344
if f i
345345
then return i

0 commit comments

Comments
 (0)