如何测试随机生成器 [英] How to test a random generator
本文介绍了如何测试随机生成器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要测试随机产生数字的随机数生成器.如何确保生成的数字是随机的.
I need to test a random number generator which produces numbers randomly. How to make sure the numbers generated are random.
推荐答案
无论如何,您只能测试统计随机性,但这不能证明数字序列在密码学上是否强.对PRNG进行统计测试需要大量(10甚至100Gbytes)生成的比特.
You can only test statistical randomness anyway, and that does not prove whether the number sequence is cryptographically strong. Statistically testing a PRNG requires quite a lot (10 or even 100Gbytes) of the generated bits.
Dieharder是一个非常好的测试套件.
Dieharder is a very good testing suite.
http://www.phy.duke.edu/~rgb/General/dieharder.php
TestU01也是众所周知的.
And TestU01 is also well-known.
http://www.iro.umontreal.ca/~simardr/testu01/tu01.html
这篇关于如何测试随机生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文