Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: A Pseudo-Random Number Generator Predictor in Java (github.com/yutarochan)
5 points by ponsuke on May 26, 2014 | hide | past | favorite | 3 comments



So from the first two 'randomly' generated integers it is possible to derive a value that can be used to as a seed value to 'sync' two PRNGs? that can't be good. :S


The docs do say:

> Instances of java.util.Random are not cryptographically secure. Consider instead using SecureRandom to get a cryptographically secure pseudo-random number generator for use by security-sensitive applications.

So hopefully this isn't too much of a surprise to anyone writing crypto code in Java.


Dilbert's take on this:

http://i.imgur.com/lr5ko7L.gif




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: