Skip to content

Document the meaning of seed = 0 in SobolRsg, HaltonRsg and RandomSequenceGenerator - #2738

Merged
lballabio merged 1 commit into
lballabio:masterfrom
advitrocks9:document-seed-zero
Aug 20, 2026
Merged

lballabio merged 1 commit into
lballabio:masterfrom
advitrocks9:document-seed-zero

Conversation

@advitrocks9

Copy link
Copy Markdown
Contributor

Follows up on #2732: adds the missing seed-0 documentation. Comments only, no behaviour change.

SobolRsg, HaltonRsg and RandomSequenceGenerator all default seed = 0 and forward it to the RNG without documenting it, while the uniform RNGs carry a note. This adds the same note to all three, with the qualifiers that make it true: SobolRsg only uses the seed past the tabulated direction integers, HaltonRsg only when randomStart or randomShift is true, RandomSequenceGenerator always. I checked each case by comparing draws from two generators seeded differently.

sobolbrownianbridgersg.hpp has the same gap, left alone because #2691 is open on that file.

@boring-cyborg

boring-cyborg Bot commented Aug 19, 2026

Copy link
Copy Markdown

Thanks for opening this pull request! It might take a while before we look at it, so don't worry if there seems to be no feedback. We'll get to it.

@CLAassistant

CLAassistant commented Aug 19, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 75.308%. remained the same — advitrocks9:document-seed-zero into lballabio:master

@lballabio lballabio changed the title Document the meaning of seed 0 in SobolRsg, HaltonRsg and RandomSequenceGenerator Document the meaning of seed = 0 in SobolRsg, HaltonRsg and RandomSequenceGenerator Aug 20, 2026
@lballabio
lballabio merged commit 74f64ce into lballabio:master Aug 20, 2026
45 of 47 checks passed
@boring-cyborg

boring-cyborg Bot commented Aug 20, 2026

Copy link
Copy Markdown

Congratulations on your first merged pull request!

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.

4 participants