You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import os print( bin(int.from_bytes(os.urandom(1024),'big')))
does not pass Maurer test (09) and approx. Entropy test (12)
print( bin(int.from_bytes(open('/dev/urandom','rb').read(1024),'big'))) does not pass Maurer test (09) and randomly, does not pass approx. Entropy test (12) too
The text was updated successfully, but these errors were encountered:
I tried on Python 3.6.9 (default, Jun 29 2022, 11:45:57) [GCC 8.4.0] on linux, using Jetson Nano's Linux
I wonder, does it imply that both incompliance to NIST, or something else
Maurer's Test is only applicable for bit strings of length >= 387840.
As for the approximate entropy test, I think that with enough data (at least 10^6 or something), it might actually pass.
If your bit string is not long enough, the tests might "randomly" fail.
import os print( bin(int.from_bytes(os.urandom(1024),'big')))
does not pass Maurer test (09) and approx. Entropy test (12)
print( bin(int.from_bytes(open('/dev/urandom','rb').read(1024),'big')))
does not pass Maurer test (09) and randomly, does not pass approx. Entropy test (12) tooThe text was updated successfully, but these errors were encountered: