TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

IOS 7 has weak random number generator.

4 pointsby teawithcarlabout 11 years ago

2 comments

CurtMonashabout 11 years ago
I know little about RNGs -- but wouldn&#x27;t it be practical to run about 3 RNGs with different algorithms in parallel, and add their results? Surely that would be a lot harder to attack than any one RNG.<p>Ditto if you start with the RNG output and apply even a simple transformation to it. After all, if you start with a pseudo-random-number and apply to it an isomorphism from the valid number set to itself, you should wind up with something that&#x27;s still pseudo-random.
评论 #7418748 未加载
omarforgotpwdabout 11 years ago
Random numbers don&#x27;t always need to be cryptographically secure. In situations like games you might just want to use a function with low resource requirements.<p>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.<p>Disclaimer: I&#x27;m not sure if what I&#x27;m saying is true