Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command to generate input to RNG test suites #1761

merged 1 commit into from Feb 24, 2019


2 participants
Copy link

commented Feb 21, 2019

Replaces #550

--debug_random_feed makes it easy to feed output from the random generator used for keypair/seed generation into test suites, such as dieharder (available at least for macOS and Linux)


brew install dieharder

./nano_node --debug_random_feed | dieharder -a -g 200

   rng_name    |rands/second|   Seed   |
stdin_input_raw|  7.24e+06  |3948269495|
        test_name   |ntup| tsamples |psamples|  p-value |Assessment
   diehard_birthdays|   0|       100|     100|0.55550323|  PASSED
      diehard_operm5|   0|   1000000|     100|0.35161023|  PASSED
  diehard_rank_32x32|   0|     40000|     100|0.76240519|  PASSED
    diehard_rank_6x8|   0|    100000|     100|0.62220366|  PASSED
   diehard_bitstream|   0|   2097152|     100|0.67553992|  PASSED
        diehard_opso|   0|   2097152|     100|0.64977517|  PASSED
        diehard_oqso|   0|   2097152|     100|0.12354025|  PASSED
 ... a lot more tests here ...

Running the entire suite takes a long time (for good reasons), though it's possible to pick just a few strong tests if we want this in CI in the future.

@cryptocode cryptocode added the tool label Feb 21, 2019

@cryptocode cryptocode added this to the V19.0 milestone Feb 21, 2019

@cryptocode cryptocode self-assigned this Feb 21, 2019

@cryptocode cryptocode requested a review from SergiySW Feb 21, 2019

@cryptocode cryptocode added this to CP1 in V19 Feb 21, 2019

Copy link

left a comment


@cryptocode cryptocode merged commit cb6fef6 into nanocurrency:master Feb 24, 2019

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
continuous-integration/travis-ci/pr The Travis CI build passed

@cryptocode cryptocode deleted the cryptocode:random-tester-2 branch Feb 24, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.