Skip to content

Add seed getter/setter to public C API with reproducibility tests#7

Merged
yohanchatelain merged 1 commit into
verificarlo:mainfrom
yohanchatelain:main
May 29, 2026
Merged

Add seed getter/setter to public C API with reproducibility tests#7
yohanchatelain merged 1 commit into
verificarlo:mainfrom
yohanchatelain:main

Conversation

@yohanchatelain

Copy link
Copy Markdown
Collaborator

Expose interflop_prism_get_seed/set_seed in prism_api.h and prism_api.cpp. Fix xoshiro.h seed helpers to use inline external linkage so state is shared across translation units. Add scalar and vector reproducibility tests verifying that the same (seed, thread_number) pair always produces the same RNG sequence.

Expose interflop_prism_get_seed/set_seed in prism_api.h and prism_api.cpp.
Fix xoshiro.h seed helpers to use inline external linkage so state is shared
across translation units. Add scalar and vector reproducibility tests verifying
that the same (seed, thread_number) pair always produces the same RNG sequence.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@yohanchatelain yohanchatelain merged commit 13ee3f0 into verificarlo:main May 29, 2026
4 of 5 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