Re:Random Number Generator Recommendations for Applications
by 0cf8612b2e1e on Tuesday May 30, 2023 @08:10PM
(#36132922)
I am trying and failing to find an article where a poker website published their source code, including how they shuffled cards and seeded their randomness. The seed was the current timestamp. Someone realized an efficient way to reduce the search space, assuming vaguely accurate clocks, and predict every card distributed at the table after viewing only a small number of cards.
[ Parent
| on HN ]
Re:Random Number Generator Recommendations for Applications
by charcircuit on Wednesday May 31, 2023 @12:15AM
(#36134382)
This sounds similar https://github.com/ech0ii/forceitbox
Also for an example of exploiting a gambling site that used javascript's Math.random https://jonasnick.github.io/blog/2015/07/08/exploiting-csgoj...
Re:Random Number Generator Recommendations for Applications
by Tangurena2 on Tuesday June 06, 2023 @10:30AM
(#36213375)
This is probably the article you are looking for:
https://www.developer.com/guides/how-we-learned-to-cheat-at-...
The timestamp was down to a fraction of a second, so instead of having 52! possible decks (about 2^226) there were only 2^32 possible decks that could be generated by the algorithm.