News for hackers. Stuff that matters.
Re:Predicting the next Math.random() in Java by banthar on Monday September 01, 2014 @03:00PM (#8254235)
This more probable than you think. Java code is likely to use Collections.shuffle(). That method uses internal Random which is used only for shuffling. Shuffling is unlikely to be used for other purposes than shuffling cards. There isn't that many ways to shuffle them either.
Re:Predicting the next Math.random() in Java by ivanche on Tuesday September 02, 2014 @08:23AM (#8257113)
I worked for 6 years in a company which makes online (gambling) games. I can tell you that anyone who even thinks of using Collections.shuffle() for shuffling cards in production code is an amateur.
Re:Predicting the next Math.random() in Java by xxs on Tuesday September 02, 2014 @03:35AM (#8256210)
shuffle does allow specifying a j.u.Random as second parameter. If you don't use SecureRandom when you have to, it's your own fall.