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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

share|cite|improve this question

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|cite|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.