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

Make sure distribution resolving uses proper randomnes #68

Open
latenssi opened this issue Oct 4, 2021 · 0 comments
Open

Make sure distribution resolving uses proper randomnes #68

latenssi opened this issue Oct 4, 2021 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@latenssi
Copy link
Member

latenssi commented Oct 4, 2021

Currently we use rand.New(rand.NewSource(time.Now().UnixNano())) from math/rand to distribute the collectibles in packs.
https://github.com/flow-hydraulics/flow-pds/blob/main/service/app/distribution.go#L129

Is this ok?

@latenssi latenssi added the help wanted Extra attention is needed label Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant