Skip to content

Conversation

lehins
Copy link
Contributor

@lehins lehins commented Jul 6, 2025

setStdGen was implemented in terms of writeIORef, which is not thread safe.

Also make getStdRandom less strict in the value being generated, while keeping the contents of globalStdGen strict. Related to #87

@lehins lehins changed the title Fic setStdGen not being thread safe Fix setStdGen not being thread safe Jul 6, 2025
@lehins lehins force-pushed the lehins/thread-safe-fix branch from 64f073d to 26f5aa1 Compare July 6, 2025 21:51
@lehins lehins merged commit dca6f5e into master Jul 8, 2025
56 checks passed
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.

1 participant