TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

IOS 7 has weak random number generator.

4 点作者 teawithcarl大约 11 年前

2 条评论

CurtMonash大约 11 年前
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 未加载
omarforgotpwd大约 11 年前
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