Skip to content

Conversation

jbrechtel
Copy link
Contributor

Crypto.Nonce's new creates a generator with resources that must be released after used. Specifically it creates a new file handle to /dev/urandom.

Crypto.NonceprovideswithGeneratorto create and safely de-allocate the generator after use so this PR wraps our call toNonce.nonce128` with that.

@VictorDenisov VictorDenisov merged commit b02c29e into mongodb-haskell:master Mar 15, 2018
@VictorDenisov
Copy link
Member

👍 Thanks for the PR

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

Successfully merging this pull request may close these issues.

2 participants