Skip to content

On Windows, splitGen does not evaluate. #28

@ahgibbons

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?

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