randomness_testsuite
randomness_testsuite copied to clipboard
This is a Python implementation of NIST's A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications
[Cumulative Sums Test] Add/Sub -1 after division instead of before leads to wrong result for test.
According to the NIST Standard 1 needs to be subtracted/added before the division.  This is not the case for following lines: https://github.com/stevenang/randomness_testsuite/blob/7147879859d095a4cac63962efd7a19d4874a630/CumulativeSum.py#L54-L55 It should be: ```python start = int(floor(0.25...
> current ```python from scipy import zeros as zeros ``` > after changes ```python from numpy import zeros as zeros ```
this might be the correctio : test = Universal() binary_data = "your_binary_data_here" p_value, result = test.statistical_test(binary_data, verbose=True) print("Result of test:", result)
This project is very nice, but hard to find as it only mentions the title "NIST's A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications" but...
### Hello** contributors, first of all thank you very much to provide us the coding process and a very helpful interface to calculate the NIST test. Dear Sir, I have...
Dear contributors, First of all, thank you so much for providing this amazing tool and kindly share it as open source. I have a bit string of approx 40 Kbit...
1. `import os print( bin(int.from_bytes(os.urandom(1024),'big'))) ` does not pass Maurer test (09) and approx. Entropy test (12)  2. `print( bin(int.from_bytes(open('/dev/urandom','rb').read(1024),'big')))` does not pass Maurer test (09) and _randomly_, does...
Hello, I noticed that for the spectral test, if I run your exact code I get a p-value of (0.08683884535014418, True) instead of the value in the results (0.847186705069) for...
save doesn't work because: result = self.__test_result[0] should be : result = self._test_result[0] just a minor typo
Hi! You use function gammainc in your frequency test, but according to the NIST you must use "1 - gammainc"