Results 1 to 2 of 2

Thread: Using dieharder test suite to test a PRNG

  1. #1
    Join Date
    Feb 2009
    Location
    Slovenija
    Beans
    Hidden!

    Using dieharder test suite to test a PRNG

    I'm trying to test a pseudo random number generator with dieharder. I generate 10 mio lines with the generator save them to file rand.txt with this header:

    Code:
    #==================================================================
    # generator lcg  seed = 9350
    #==================================================================
    type: d
    count: 10000000
    numbit: 32
    Then I try to run it with:

    Code:
    dieharder -f rand.txt -a
    But it doesn't appear to be working, because the test header says:

    Code:
    #                        Run Details
    # Random number generator tested: mt19937
    # Samples per test pvalue = 100000 (test default is 100000)
    # P-values in final KS test = 100 (test default is 100)
    It tests mt19937 instead of the file. What could be wrong?

  2. #2
    Join Date
    Feb 2009
    Location
    Slovenija
    Beans
    Hidden!

    Re: Using dieharder test suite to test a PRNG

    I have found the solution. You must use the -g 202 flag to allow file input.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •