News for hackers. Stuff that matters.
Re:Virtual deck of cards using just a browser by codeulike on Tuesday June 01, 2021 @04:57PM (#27361193)
Well they're not well known to me. But yes I can see in the FAQ https://playingcards.io/docs/faq that this site uses Fisher-Yates.
Re:Virtual deck of cards using just a browser by TheMiddleMan on Tuesday June 01, 2021 @06:16PM (#27362150)
Yes, you got it, Fischer-Yates shuffle via lodash. Here's their implementation: https://github.com/lodash/lodash/blob/master/shuffle.js
Re:Virtual deck of cards using just a browser by codeulike on Wednesday June 02, 2021 @04:50AM (#27366426)
Trying to work out how many bits the seed has, but it depends on the browsers implementation of Math.random() - in theory could be anything but apparently its usually Xorshift128+, which as far as I can tell has a 128 bit seed. So all good? Although I'm not sure where the 128 bits for the seed come from.

https://hackernoon.com/how-does-javascripts-math-random-gene...