Skip to content

Conversation

@ciaranra
Copy link
Member

For the Rust wrapper of PCG, tests of determinism have rare failures that occur when multiple threads are running. This failure can be made much more likely when multiple threads are explicitly spawned. It appears that the C implementation and Rust wrapper are allowing a global state to make it so that threads are not independent/seed deterministic. This PR attempts to fix that. It also moves the C code into the Rust crate for simpler building and to be more idiomatic.

@ciaranra ciaranra requested a review from Jonhas-qtm July 29, 2025 15:50
@Jonhas-qtm Jonhas-qtm mentioned this pull request Aug 6, 2025
@ciaranra ciaranra closed this Aug 7, 2025
@ciaranra
Copy link
Member Author

ciaranra commented Aug 7, 2025

This PR is effectively supplanted by PR #167

@ciaranra ciaranra deleted the bug/thread-safe-pcg branch August 7, 2025 02:40
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