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

Ability to seed the random generator #67

Closed
kernel-panic96 opened this issue Sep 26, 2019 · 2 comments
Closed

Ability to seed the random generator #67

kernel-panic96 opened this issue Sep 26, 2019 · 2 comments

Comments

@kernel-panic96
Copy link

If someone uses this in tests, the inability to seed the random number generator will cause unreproducible test flakiness.

@davidporos92
Copy link

I think it is possible by calling the following function with a seeded rand:

func CustomRand(randToUse *rand.Rand) {
privateRand.pr = randToUse
}

@Pallinder
Copy link
Owner

Closing this one (see above)

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

No branches or pull requests

3 participants