Skip to content

Comment on IOS 7 has weak random number generator.

Comments

Random numbers don't always need to be cryptographically secure. In situations like games you might just want to use a function with low resource requirements.

If you want a cryptographically secure random generation you should use SecRandomCopyBytes(3) which I think comes from an isolated hardware random number generator and should be tough to monitor through software.

Disclaimer: I'm not sure if what I'm saying is true

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.