Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added func SetRand(r io.Reader) #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat: added func SetRand(r io.Reader) #106

wants to merge 1 commit into from

Conversation

ugol
Copy link

@ugol ugol commented Sep 21, 2024

Fix for #105

@rs
Copy link
Owner

rs commented Sep 22, 2024

The RNG is only used to init the counter and would be executed before you have a chance to set a custom RNG. This change results in noop. Did I miss something?

@ugol
Copy link
Author

ugol commented Sep 22, 2024

Ahhh you're right, I missed that randInt() and readMachineID() are called only in the var section... so it would work only doing that part in the constructors

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