Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Windows, splitGen does not evaluate. #28

Open
ahgibbons opened this issue Nov 2, 2017 · 0 comments
Open

On Windows, splitGen does not evaluate. #28

ahgibbons opened this issue Nov 2, 2017 · 0 comments

Comments

@ahgibbons
Copy link

ahgibbons commented Nov 2, 2017

When trying to use the splitGen function from Crypto.Random, my program just hangs and it never evaluates.

Here is how it can be done in ghci by checking if the result of splitGen is Right or Left:

>> import Crypto.Random
>> import Data.Either
>> g <- newGenIO :: IO SystemRandom
>> let newGens = splitGen g
>> isRight newGens

This function just hangs for me.

Edit: I've read more into the package and appears that this behavior is known. Maybe this topic can be closed but is there a way to fix this behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant