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

fix: seed the random number generator #432

Merged
merged 1 commit into from
Dec 9, 2014
Merged

fix: seed the random number generator #432

merged 1 commit into from
Dec 9, 2014

Conversation

btc
Copy link
Contributor

@btc btc commented Dec 9, 2014

When diag net showed all nodes selecting the same random subset of
bootstrap peers every time, it became clear the random number generator wasn't
seeded ever.

Sources on the web indicate its best to seed once at the beginning of the
program. Open to suggestions.

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
@btc btc added the status/in-progress In progress label Dec 9, 2014
@jbenet
Copy link
Member

jbenet commented Dec 9, 2014

it became clear the random number generator wasn't
seeded ever.

Yeah, we never seeded it. This LGTM

jbenet added a commit that referenced this pull request Dec 9, 2014
fix: seed the random number generator
@jbenet jbenet merged commit 11df4d5 into master Dec 9, 2014
@jbenet jbenet deleted the fix/seed branch December 9, 2014 10:38
@jbenet jbenet removed the status/in-progress In progress label Dec 9, 2014
ariescodescream pushed a commit to ariescodescream/go-ipfs that referenced this pull request Oct 23, 2021
…com/libp2p/go-libp2p-0.5.0

build(deps): bump github.com/libp2p/go-libp2p from 0.4.2 to 0.5.0
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