Skip to content

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

Open
ugol wants to merge 1 commit into
rs:masterfrom
ugol:master
Open

feat: added func SetRand(r io.Reader)#106
ugol wants to merge 1 commit into
rs:masterfrom
ugol:master

Conversation

@ugol

@ugol ugol commented Sep 21, 2024

Copy link
Copy Markdown

Fix for #105

@rs

rs commented Sep 22, 2024

Copy link
Copy Markdown
Owner

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

ugol commented Sep 22, 2024

Copy link
Copy Markdown
Author

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