Skip to content

Conversation

radik878
Copy link

@radik878 radik878 commented Sep 1, 2025

Update sample_u64 to draw 8 bytes from advancing sources (DefaultTranscript: sample(); FeltTranscript/QuadFeltTranscript: sample(8)), ensuring subsequent calls produce different values without changing bias handling or adding new checks.

What this fixes:
Ensures sequential sample_u64 calls don’t repeat the same value unless the transcript input changes.
Aligns behavior with rng-like expectations and with the STARK transcript’s advancing sampling pattern.

@radik878 radik878 requested a review from a team as a code owner September 1, 2025 09:06
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