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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

PCG – A Family of Better Random Number Generators

13 点作者 Uzomidy超过 10 年前

3 条评论

aidenn0超过 10 年前
The author does not indicate what sort of target the benchmarks were run on, but for comparison ChaCha20&#x2F;8 which is a more modern secure PRNG compared to the arcfour that they show runs about 10Gb&#x2F;s on modern hardware.<p>ChaCha20&#x2F;20 is a more conservative choice (i.e. there are classes of attacks on ChaCha20&#x2F;8 that would be infeasible against ChaCha20&#x2F;20) but runs somewhere between 1&#x2F;3 and 1&#x2F;2 the speed of 20&#x2F;8.
评论 #8591796 未加载
trebor超过 10 年前
I&#x27;d like to see more substantiation than the guy&#x27;s own site. The PCG &quot;family&quot; is omitted from every graph that I saw. Also, from my own testing, Mersenne Twister appears to have enough randomness for non-cryptographic purposes. I&#x27;ve never had particularly predictable sequences from it.
评论 #8591092 未加载
评论 #8591775 未加载
Uzomidy超过 10 年前
Apparently, both the Mersenne Twister and XorShift (which seem to be two of the popular RNGs people use these days) can&#x27;t pass all statistical tests. (The Mersenne Twister is pretty huge as well.)
评论 #8591761 未加载