Skip to content

chore: replace rand and srand at the library level#1318

Open
wbruna wants to merge 1 commit intoleejet:masterfrom
wbruna:sd_replace_rand
Open

chore: replace rand and srand at the library level#1318
wbruna wants to merge 1 commit intoleejet:masterfrom
wbruna:sd_replace_rand

Conversation

@wbruna
Copy link
Contributor

@wbruna wbruna commented Mar 4, 2026

These functions have global state, so they could interfere with application behavior.

It would arguably be more correct to use std::default_random_device, but that seemed a bit overkill for this.

These functions have global state, so they could interfere with
application behavior.
@leejet
Copy link
Owner

leejet commented Mar 4, 2026

In fact, the randomness of the seed is not actually important.

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