GINAR is a blockchain technology company specializing in providing a decentralized random number generator. Random Number Generation, or RNG, is a key component to applications that benefit from true randomness. GINAR is set to release a best-in-class decentralized.
Random Number Generator (dRNG) that will change the financial, gambling, online gaming, and IOT industry by providing the fastest, most secure and easily verifiable service, ..
This is implementation of NIST's statistical test suite for Random Number Generator (RNG) that apply to GINAR RNG
NIST SP 800-22 Statistical Test Suite
Generators suitable for use in cryptographic applications may need to meet stronger requirements than for other applications. In particular, their outputs must be unpredictable in the absence of knowledge of the inputs. Some criteria for characterizing and selecting appropriate generators are discussed in this document. The subject of statistical testing and its relation to cryptanalysis is also discussed, and some recommended statistical tests are provided. These tests may be useful as a first step in determining whether or not a generator is suitable for a particular cryptographic application. However, no set of statistical tests can absolutely certify a generator as appropriate for usage in a particular application, i.e., statistical testing cannot serve as a substitute for cryptanalysis. The design and cryptanalysis of generators is outside the scope of this paper.
GINAR Random test requires Python 2.7 to run. First, you need to clone our repository and install some packages:
$ git clone https://github.com/ginarteam/randomness-tests.git
$ pip install requests $ pip install numpy $ pip install matplotlib
Get data for random test
You need a dataset of random number for the test. We have built a function that help you get data from GINAR:
- Login your account GINAR
- Initialize your session key
- Copy the init-session-key link (url)
(More detail, please visit our documentation website)
This test suite requires 8000 numbers as minimum. We recommend using 2000000 numbers.
Run the test
$ cd randomness-tests $ python test.py
Output and visualization
The output of this test store in
results folder contains some
png files that is the ouput and column chart of every single test.
test_report for more detail of Test Suite