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 Knuth shuffle #169

Merged
merged 1 commit into from Oct 29, 2014
Merged

Conversation

@charlescharles
Copy link
Contributor

charlescharles commented Oct 28, 2014

randomly noticed while browsing the code -- switching each element with a random element of the entire array isn't a random shuffle. see http://stackoverflow.com/a/7291502

@feross

@charlescharles charlescharles force-pushed the charlescharles:charles/knuth-shuffle branch from 83fa930 to 42b8f93 Oct 28, 2014
@charlescharles charlescharles force-pushed the charlescharles:charles/knuth-shuffle branch from 42b8f93 to 2c4bac0 Oct 28, 2014
feross added a commit that referenced this pull request Oct 29, 2014
Fix Knuth shuffle
@feross feross merged commit 6bc0638 into webtorrent:master Oct 29, 2014
1 check failed
1 check failed
continuous-integration/travis-ci The Travis CI build failed
Details
@feross

This comment has been minimized.

Copy link
Member

feross commented Oct 29, 2014

This is pretty funny. I'm sitting here with @dcposch who was talking about mixcoin and then we noticed this PR was from you.

Thanks, dude!

@charlescharles

This comment has been minimized.

Copy link
Contributor Author

charlescharles commented Oct 29, 2014

No problem!

@lock lock bot locked as resolved and limited conversation to collaborators May 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.