Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

If my PRNG passes most or all diehard tests does it mean it is secure enough for practical usage? Should I test it with other programms, to ensure it's security?

Results of tests: http://pastebin.com/EzY7Pqjq

share|improve this question

1 Answer 1

What do you mean, "secure enough"?

If you're thinking of cryptographic use, then arguably nothing short of "somehow convince quite a number of known brilliant cryptologists to spend lots and lots of time trying to break your PRNG and fail" will suffice as a test. Or you could just used one of the several off-the-shelf PRNGs that have already been subjected to this test.

If you're just using your random numbers for things like Monte Carlo simulations, or resilience against pathological input conditions, then the required standards are not nearly as high, and the Diehard tests are probably fairly reliable.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.