Bine reperat, nu observasem asta. Da, ent
este cel mai robust test de aleatorie de acolo, deși nu este neapărat cel mai sofisticat, dar uită-te la asta un pic înțelept ent
testarea fișierului dvs. Hotbits:-
ent -b /tmp/hotbits
Entropie = 1,000000 de biți pe bit.
Compresia optimă ar reduce dimensiunea
din acest fișier de 91750400 de biți cu 0 procente.
Distribuția Chi pătrat pentru 91750400 de eșantioane este 0,05 și aleatoriu
ar depăși această valoare de 81,93 la sută din ori.
Valoarea medie aritmetică a biților de date este 0,5000 (0,5 = aleatoriu).
Valoarea Monte Carlo pentru Pi este 3,141486168 (eroare 0,00 la sută).
Coeficientul de corelație serială este -0,000773 (total necorelat = 0,0).
Observați -b
steag. Cele de mai sus este o trecere clară. La fel este și acest test NIST al exact același set de mostre (dacă testați doar fluxuri de 10 biți numeric de 1.000.000 de biți): -
--------------------------------------------- ----------------------------
REZULTATE PENTRU UNIFORMITATEA VALORILOR P ȘI PROPORȚIA SECVENȚILOR DE TRUCĂ
--------------------------------------------- ----------------------------
generatorul este </tmp/hotbits>
--------------------------------------------- ----------------------------
C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 TEST STATISTIC PROPORȚIEI VALOAREA P
--------------------------------------------- ----------------------------
0 0 2 1 3 1 0 0 0 3 0,122325 10/10 Frecvență
0 1 0 2 2 0 1 3 1 0 0,350485 10/10 BlockFrequency
0 0 1 2 1 0 2 1 1 2 0,739918 10/10 Sume cumulate
1 0 1 2 0 0 2 1 0 3 0,350485 10/10 Sume cumulate
3 2 1 1 0 1 0 0 0 2 0,350485 8/10 Rune
0 0 1 3 1 1 1 3 0 0 0,213309 10/10 Longest Run
2 1 1 0 2 1 1 0 2 0 0,739918 10/10 Clasament
2 0 1 2 0 3 0 1 1 0 0,350485 10/10 FFT
0 2 0 1 0 0 0 1 2 4 0,066882 10/10 NonOverlappingTemplate
1 1 1 2 0 0 0 1 2 2 0.739918 10/10 NonOverlappingTemplate
0 1 1 3 0 0 2 2 0 1 0,350485 10/10 NonOverlappingTemplate
2 0 0 2 1 1 0 2 1 1 0.739918 9/10 NonOverlappingTemplate
0 0 1 0 2 2 0 1 1 3 0,350485 10/10 NonOverlappingTemplate
1 2 1 1 0 3 1 0 1 0 0,534146 10/10 NonOverlappingTemplate
1 0 3 2 1 1 0 1 1 0 0,534146 10/10 NonOverlappingTemplate
2 0 1 0 0 4 2 0 0 1 0,066882 10/10 NonOverlappingTemplate
0 2 1 2 1 1 2 1 0 0 0,739918 10/10 NonOverlappingTemplate
0 3 0 4 0 0 0 0 2 1 0,017912 10/10 NonOverlappingTemplate
0 1 3 1 1 0 1 1 2 0 0,534146 10/10 NonOverlappingTemplate
2 0 0 2 1 1 2 1 1 0 0,739918 10/10 NonOverlappingTemplate
1 2 0 3 0 1 1 1 0 1 0,534146 10/10 NonOverlappingTemplate
2 2 0 1 0 1 0 2 2 0 0,534146 9/10 NonOverlappingTemplate
1 1 1 0 3 1 0 2 1 0 0,534146 9/10 NonOverlappingTemplate
0 1 2 2 1 2 0 0 1 1 0,739918 10/10 NonOverlappingTemplate
1 0 0 2 2 0 1 2 1 1 0,739918 10/10 NonOverlappingTemplate
2 0 3 0 0 0 1 2 1 1 0.350485 9/10 NonOverlappingTemplate
1 1 1 2 2 0 1 1 0 1 0.911413 10/10 NonOverlappingTemplate
2 3 1 0 2 0 1 0 0 1 0,350485 10/10 NonOverlappingTemplate
1 3 1 0 2 1 1 1 0 0 0,534146 10/10 NonOverlappingTemplate
1 2 1 1 1 1 1 2 0 0 0,911413 10/10 NonOverlappingTemplate
5 0 0 1 1 1 0 2 0 0 0,008879 10/10 NonOverlappingTemplate
0 2 1 1 0 1 1 1 1 2 0.911413 10/10 NonOverlappingTemplate
0 1 1 0 3 1 1 1 2 0 0,534146 10/10 NonOverlappingTemplate
1 1 1 1 3 0 0 2 0 1 0.534146 9/10 NonOverlappingTemplate
1 1 2 1 1 1 0 1 1 1 0,991468 10/10 NonOverlappingTemplate
1 0 2 3 0 0 0 2 0 2 0.213309 10/10 NonOverlappingTemplate
1 2 0 1 0 0 1 2 1 2 0,739918 10/10 NonOverlappingTemplate
0 1 1 0 2 0 0 1 4 1 0,122325 10/10 NonOverlappingTemplate
0 0 1 2 1 3 0 2 1 0 0,350485 10/10 NonOverlappingTemplate
0 2 1 2 1 0 1 1 2 0 0,739918 10/10 NonOverlappingTemplate
2 2 0 1 0 0 1 1 2 1 0,739918 9/10 NonOverlappingTemplate
2 1 2 0 2 1 0 1 1 0 0,739918 9/10 NonOverlappingTemplate
2 1 2 0 0 3 1 0 1 0 0,350485 10/10 NonOverlappingTemplate
2 0 1 0 3 1 1 0 1 1 0,534146 10/10 NonOverlappingTemplate
2 2 1 1 0 2 0 0 1 1 0,739918 10/10 NonOverlappingTemplate
0 0 0 4 1 1 1 1 1 1 0,213309 10/10 NonOverlappingTemplate
3 1 0 1 0 0 3 0 2 0 0,122325 9/10 NonOverlappingTemplate
0 2 1 1 1 1 1 2 1 0 0,911413 10/10 NonOverlappingTemplate
0 3 2 2 0 1 0 0 1 1 0,350485 10/10 NonOverlappingTemplate
1 0 1 3 0 2 1 1 0 1 0,534146 9/10 NonOverlappingTemplate
1 2 1 1 0 2 0 0 1 2 0,739918 10/10 NonOverlappingTemplate
2 2 0 2 1 0 2 0 0 1 0,534146 10/10 NonOverlappingTemplate
0 1 1 2 2 0 1 2 1 0 0,739918 10/10 NonOverlappingTemplate
0 1 1 2 0 2 1 1 1 1 0.911413 10/10 NonOverlappingTemplate
4 0 0 1 1 0 1 3 0 0 0,035174 10/10 NonOverlappingTemplate
0 4 1 1 0 0 2 2 0 0 0,066882 10/10 NonOverlappingTemplate
1 0 3 1 1 2 1 0 1 0 0,534146 10/10 NonOverlappingTemplate
1 1 0 1 1 1 1 1 1 2 0,991468 10/10 NonOverlappingTemplate
2 2 2 1 0 1 0 0 1 1 0,739918 10/10 NonOverlappingTemplate
1 1 0 1 2 1 2 0 1 1 0.911413 10/10 NonOverlappingTemplate
1 1 0 0 2 1 2 2 1 0 0,739918 10/10 NonOverlappingTemplate
1 0 2 1 1 0 2 2 1 0 0,739918 10/10 NonOverlappingTemplate
3 1 1 1 0 1 1 1 1 0 0,739918 10/10 NonOverlappingTemplate
2 0 2 2 1 2 0 1 0 0 0,534146 10/10 NonOverlappingTemplate
2 1 2 1 0 1 2 0 0 1 0,739918 10/10 NonOverlappingTemplate
2 2 0 0 0 1 3 1 0 1 0,350485 10/10 NonOverlappingTemplate
1 1 1 1 2 2 1 0 1 0 0,911413 10/10 NonOverlappingTemplate
1 2 1 3 0 0 0 1 1 1 0,534146 10/10 NonOverlappingTemplate
0 1 1 2 0 0 2 1 2 1 0,739918 10/10 NonOverlappingTemplate
0 1 2 0 3 0 2 1 0 1 0,350485 10/10 NonOverlappingTemplate
0 2 0 3 1 0 1 2 0 1 0,350485 10/10 NonOverlappingTemplate
1 0 1 1 2 1 0 0 4 0 0,122325 9/10 NonOverlappingTemplate
2 2 1 1 0 1 0 2 1 0 0,739918 9/10 NonOverlappingTemplate
1 1 2 0 3 1 1 1 0 0 0,534146 10/10 NonOverlappingTemplate
1 1 1 0 1 2 1 0 2 1 0.911413 10/10 NonOverlappingTemplate
1 0 1 1 1 3 1 1 0 1 0.739918 9/10 NonOverlappingTemplate
0 0 0 1 0 1 3 1 0 4 0,035174 10/10 NonOverlappingTemplate
2 3 0 0 0 2 1 0 1 1 0,350485 9/10 NonOverlappingTemplate
0 0 0 0 1 3 2 2 1 1 0,350485 10/10 NonOverlappingTemplate
2 0 2 1 2 0 0 0 0 3 0.213309 10/10 NonOverlappingTemplate
0 1 1 0 2 1 1 1 1 2 0,911413 10/10 NonOverlappingTemplate
2 0 2 1 1 0 2 0 1 1 0.739918 10/10 NonOverlappingTemplate
0 2 0 1 0 0 0 1 2 4 0,066882 10/10 NonOverlappingTemplate
1 1 2 0 0 4 1 1 0 0 0,122325 10/10 NonOverlappingTemplate
3 1 0 1 0 1 0 3 1 0 0,213309 10/10 NonOverlappingTemplate
1 0 1 2 1 1 1 0 1 2 0,911413 10/10 NonOverlappingTemplate
3 1 2 1 1 0 2 0 0 0 0,350485 10/10 NonOverlappingTemplate
2 0 2 1 1 0 0 2 2 0 0,534146 10/10 NonOverlappingTemplate
0 3 1 2 2 0 1 0 0 1 0,350485 10/10 NonOverlappingTemplate
1 2 1 4 1 1 0 0 0 0 0,122325 10/10 NonOverlappingTemplate
1 2 1 3 0 1 0 1 0 1 0,534146 10/10 NonOverlappingTemplate
0 1 4 0 0 1 0 1 1 2 0,122325 10/10 NonOverlappingTemplate
0 2 0 0 1 1 1 3 1 1 0,534146 10/10 NonOverlappingTemplate
1 0 2 1 0 1 1 0 2 2 0.739918 10/10 NonOverlappingTemplate
1 3 2 2 1 1 0 0 0 0 0,350485 10/10 NonOverlappingTemplate
2 3 2 2 0 1 0 0 0 0 0,213309 10/10 NonOverlappingTemplate
2 1 1 0 1 3 2 0 0 0 0,350485 10/10 NonOverlappingTemplate
1 0 3 0 1 0 2 0 2 1 0.350485 9/10 NonOverlappingTemplate
1 1 1 0 4 0 1 0 0 2 0,122325 10/10 NonOverlappingTemplate
0 0 0 1 0 1 1 0 3 4 0,035174 10/10 NonOverlappingTemplate
0 4 2 0 1 0 0 1 1 1 0,122325 10/10 NonOverlappingTemplate
0 1 3 1 2 1 0 1 0 1 0,534146 10/10 NonOverlappingTemplate
1 0 2 1 1 1 2 1 1 0 0,911413 10/10 NonOverlappingTemplate
2 1 0 0 1 0 0 3 1 2 0,350485 10/10 NonOverlappingTemplate
0 1 1 1 1 1 2 1 1 1 0,991468 10/10 NonOverlappingTemplate
1 1 3 1 0 2 1 0 1 0 0,534146 10/10 NonOverlappingTemplate
2 1 1 0 2 2 0 0 0 2 0,534146 10/10 NonOverlappingTemplate
2 0 0 1 3 0 1 0 2 1 0,350485 8/10 NonOverlappingTemplate
2 1 1 0 1 1 0 1 2 1 0.911413 9/10 NonOverlappingTemplate
1 1 2 0 1 2 0 1 1 1 0.911413 10/10 NonOverlappingTemplate
0 1 3 0 1 2 1 1 1 0 0,534146 10/10 NonOverlappingTemplate
0 0 2 1 2 0 0 1 2 2 0,534146 10/10 NonOverlappingTemplate
2 0 1 1 1 1 0 3 1 0 0,534146 9/10 NonOverlappingTemplate
0 0 4 2 1 0 1 0 1 1 0,122325 10/10 NonOverlappingTemplate
3 1 0 0 3 0 1 2 0 0 0,122325 10/10 NonOverlappingTemplate
1 2 1 1 2 1 0 1 1 0 0,911413 10/10 NonOverlappingTemplate
2 1 1 1 2 0 0 2 0 1 0.739918 9/10 NonOverlappingTemplate
2 2 0 1 0 2 1 1 0 1 0,739918 10/10 NonOverlappingTemplate
0 2 0 0 0 2 2 1 2 1 0,534146 10/10 NonOverlappingTemplate
1 1 2 3 1 2 0 0 0 0 0,350485 10/10 NonOverlappingTemplate
0 1 1 0 2 0 1 2 1 2 0.739918 10/10 NonOverlappingTemplate
2 1 2 0 0 2 0 1 1 1 0,739918 9/10 NonOverlappingTemplate
1 1 0 1 3 2 0 1 1 0 0,534146 10/10 NonOverlappingTemplate
0 2 0 2 1 2 1 0 1 1 0,739918 10/10 NonOverlappingTemplate
2 1 0 1 0 2 1 1 2 0 0,739918 10/10 NonOverlappingTemplate
1 0 1 0 4 2 0 1 0 1 0,122325 10/10 NonOverlappingTemplate
1 2 0 0 0 4 1 0 0 2 0,066882 10/10 NonOverlappingTemplate
2 1 0 0 3 0 1 1 1 1 0,534146 9/10 NonOverlappingTemplate
3 1 0 0 2 1 0 2 0 1 0,350485 10/10 NonOverlappingTemplate
1 0 1 1 0 1 1 1 2 2 0.911413 10/10 NonOverlappingTemplate
0 2 1 0 2 0 0 0 3 2 0.213309 10/10 NonOverlappingTemplate
0 0 2 1 2 3 0 1 1 0 0,350485 10/10 NonOverlappingTemplate
1 1 0 2 2 1 2 0 0 1 0,739918 10/10 NonOverlappingTemplate
4 0 1 1 1 0 1 1 1 0 0,213309 9/10 NonOverlappingTemplate
1 0 2 0 0 2 1 3 0 1 0,350485 10/10 NonOverlappingTemplate
1 1 0 1 2 0 0 2 3 0 0,350485 10/10 NonOverlappingTemplate
1 0 2 2 0 2 1 0 1 1 0,739918 10/10 NonOverlappingTemplate
0 2 3 1 1 0 1 1 1 0 0,534146 10/10 NonOverlappingTemplate
2 0 0 0 1 3 2 1 1 0 0,350485 9/10 NonOverlappingTemplate
1 1 2 0 1 2 1 1 0 1 0.911413 10/10 NonOverlappingTemplate
1 1 2 3 0 3 0 0 0 0 0,122325 10/10 NonOverlappingTemplate
0 2 0 2 3 0 1 0 1 1 0,350485 10/10 NonOverlappingTemplate
1 0 2 1 2 0 2 1 0 1 0,739918 10/10 NonOverlappingTemplate
0 1 2 1 1 1 2 1 1 0 0,911413 10/10 NonOverlappingTemplate
1 1 1 0 0 5 0 1 1 0 0,017912 10/10 NonOverlappingTemplate
0 0 1 0 1 1 2 2 1 2 0,739918 10/10 NonOverlappingTemplate
1 4 1 2 1 0 0 1 0 0 0,122325 10/10 NonOverlappingTemplate
1 1 2 1 2 0 0 0 2 1 0,739918 10/10 NonOverlappingTemplate
0 1 1 2 1 0 0 3 1 1 0,534146 10/10 NonOverlappingTemplate
1 0 2 0 2 0 1 0 2 2 0,534146 10/10 NonOverlappingTemplate
2 1 1 1 1 0 1 0 2 1 0.911413 10/10 NonOverlappingTemplate
0 2 2 1 0 1 1 1 2 0 0,739918 10/10 NonOverlappingTemplate
2 0 1 0 1 0 0 2 2 2 0,534146 10/10 NonOverlappingTemplate
3 1 1 1 0 0 1 0 0 3 0.213309 10/10 NonOverlappingTemplate
0 0 2 1 0 2 1 0 2 2 0,534146 10/10 NonOverlappingTemplate
2 0 2 1 1 0 2 0 1 1 0.739918 10/10 NonOverlappingTemplate
1 1 2 1 0 1 2 2 0 0 0,739918 10/10 Șablon suprapus
3 0 1 0 2 0 1 3 0 0 0,122325 10/10 Universal
2 4 1 0 0 1 0 1 1 0 0,122325 10/10 Entropie aproximativă
1 1 1 2 0 0 0 1 1 1 ---- 8/8 RandomExcursions
1 1 0 1 3 1 1 0 0 0 ---- 8/8 RandomExcursions
0 1 0 0 0 0 1 2 3 1 ---- 8/8 RandomExcursions
0 1 0 0 2 2 0 0 2 1 ---- 8/8 RandomExcursions
0 0 0 1 1 2 2 1 0 1 ---- 8/8 RandomExcursions
0 1 0 0 2 1 2 1 0 1 ---- 8/8 RandomExcursions
0 1 1 1 1 1 2 0 0 1 ---- 8/8 RandomExcursions
0 0 1 1 1 0 1 0 1 3 ---- 8/8 RandomExcursions
1 0 0 2 1 1 1 0 0 2 ---- 8/8 RandomExcursionsVariant
1 0 0 1 2 1 0 1 0 2 ---- 8/8 RandomExcursionsVariant
1 0 1 0 2 0 1 1 0 2 ---- 8/8 RandomExcursionsVariant
1 0 1 1 0 1 3 0 1 0 ---- 7/8 RandomExcursionsVariant
1 2 0 0 0 2 1 1 1 0 ---- 7/8 RandomExcursionsVariant
3 0 0 1 0 1 1 0 1 1 ---- 7/8 RandomExcursionsVariant
1 1 2 0 1 0 0 1 1 1 ---- 7/8 RandomExcursionsVariant
1 0 1 3 0 0 1 0 2 0 ---- 8/8 RandomExcursionsVariant
0 0 2 1 1 1 0 1 0 2 ---- 8/8 RandomExcursionsVariant
0 1 0 0 1 0 2 0 3 1 ---- 8/8 RandomExcursionsVariant
0 0 2 0 1 0 0 2 2 1 ---- 8/8 RandomExcursionsVariant
0 0 2 1 1 0 0 0 1 3 ---- 8/8 RandomExcursionsVariant
0 1 0 2 0 0 1 3 1 0 ---- 8/8 RandomExcursionsVariant
1 0 0 2 1 0 0 0 1 3 ---- 8/8 RandomExcursionsVariant
0 2 1 1 0 1 0 2 1 0 ---- 8/8 RandomExcursionsVariant
2 0 1 1 0 2 0 1 1 0 ---- 8/8 RandomExcursionsVariant
2 1 0 1 0 1 1 0 2 0 ---- 8/8 RandomExcursionsVariant
2 1 0 1 0 2 1 1 0 0 ---- 8/8 RandomExcursionsVariant
2 1 1 1 0 2 1 1 1 0 0,911413 10/10 Serial
0 3 3 1 0 0 2 0 1 0 0,122325 10/10 Serial
1 1 0 1 3 1 0 0 2 1 0,534146 10/10 LinearComplexity
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Rata minimă de promovare pentru fiecare test statistic, cu excepția
testul de excursie aleatoare (variantă) este aproximativ = 8 pentru a
dimensiunea eșantionului = 10 secvențe binare.
Rata minimă de promovare pentru testul de excursie aleatorie (variantă).
este aproximativ = 7 pentru o dimensiune a eșantionului = 8 secvențe binare.
Pentru ghiduri suplimentare, construiți un tabel de probabilități folosind programul MAPLE
prevăzute în secțiunea de addendum a documentației.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cu toate acestea, dacă testați toți biții ca ./evaluează 8000000
ori fluxurile de 10 biți, testul NIST nu reușește fișierul cu
8 0 1 0 1 0 0 0 0 0 0,000000 * 7/10 * Rune
Este o anomalie statistică interesantă, nu? Probabil ceva de-a face cu felul în care au fost generate mostrele și cu modelarea NIST destul de slabă despre care este bine cunoscută. Clar $\chi^2$ variază în funcție de dimensiunea ferestrei eșantionului, adică 1 bit, 8 biți etc. Și acea aleatorie nu este o știință exactă. Mi-am dat seama că este mai mult despre cum te simți despre TRNG.
Deci, în concluzie, nu ți-am răspuns în întregime la întrebare, ci mai degrabă am adăugat la ea...