Merged
Conversation
7fc8273 to
90d54b8
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5323 +/- ##
========================================
Coverage ? 100.00%
========================================
Files ? 4
Lines ? 63
Branches ? 0
========================================
Hits ? 63
Misses ? 0
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
1RyanK
approved these changes
Jan 23, 2026
90d54b8 to
7070782
Compare
e47b9f0 to
eb72a01
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add stateless, index-based RNG via SplitMix64
Summary
This PR introduces a stateless, index-based random number generator to Arkouda using a SplitMix64 mixing function. The new implementation enables reproducible random sequences that are independent of execution order, parallelism, and locale count, making them suitable for sampling, shuffling, sketching, and other distributed algorithms.
The PR adds:
Motivation
Existing RNG paths in Arkouda rely on mutable state, which can make results sensitive to chunking and execution order. Many analytics and data-parallel algorithms instead need pure functions of (seed, stream, index).
Design & Implementation
Testing
Adds extensive reproducibility, statistical, and independence tests, with conservative thresholds to avoid CI flakiness.
Compatibility
No changes to existing RNG behavior; new functionality is opt-in.
Future Work
Potential public API exposure and use in distributed shuffle/sampling paths.
Closes #5316: SplitMix64RNG