Skip to content

On Windows, splitGen does not evaluate. #28

Description

@ahgibbons

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions