randomness_testsuite icon indicating copy to clipboard operation
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

Results 16 randomness_testsuite issues
Sort by recently updated
recently updated
newest added

According to the NIST Standard 1 needs to be subtracted/added before the division. ![Screenshot_2024-04-19_09-37-58](https://github.com/stevenang/randomness_testsuite/assets/18208274/d0fd8500-1821-4ca5-a5e2-1fa0351dc7a0) 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) ![image](https://user-images.githubusercontent.com/18462809/204074699-9b3e8231-aae2-40a0-9441-4599c5ce821d.png) 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"