The problem of constructing effective statistical tests for random number generators (RNG) is considered. Currently, there are hundreds of RNG statistical tests that are often combined into so-called batteries, each containing from a dozen to more than one hundred tests. When a battery test is used, it is applied to a sequence generated by the RNG, and the calculation time is determined by the length of the sequence and the number of tests. Generally speaking, the longer is the sequence, the smaller are the deviations from randomness that can be found by a specific test. Thus, when a battery is applied, on the one hand, the “better” are the tests in the battery, the more chances there are to reject a “bad” RNG. On the other hand, the larger is the battery, the less time it can spend on each test and, therefore, the shorter is the test sequence. In turn, this reduces the ability to find small deviations from randomness. To reduce this trade-off, we propose an adaptive way to use batteries (and other sets) of tests, which requires less time but, in a certain sense, preserves the power of the original battery. We call this method time-adaptive battery of tests. The suggested method is based on the theorem which describes asymptotic properties of the so-called p-values of tests. Namely, the theorem claims that, if the RNG can be modeled by a stationary ergodic source, the value −logπ(x1x2…xn)/n goes to 1−h when n grows, where x1x2… is the sequence, π() is the p-value of the most powerful test, and h is the limit Shannon entropy of the source.
[1]
Pierre L'Ecuyer,et al.
History of uniform random number generation
,
2017,
2017 Winter Simulation Conference (WSC).
[2]
H. Demirhan,et al.
Statistical Testing of Cryptographic Randomness
,
2016
.
[3]
Pierre L'Ecuyer,et al.
TestU01: A C library for empirical testing of random number generators
,
2006,
TOMS.
[4]
Cristian S. Calude.
Information and Randomness: An Algorithmic Perspective
,
1994
.
[5]
R. Fisher.
The Advanced Theory of Statistics
,
1943,
Nature.
[6]
Jaakko Astola,et al.
Universal Codes as a Basis for Time Series Testing
,
2006,
ArXiv.
[7]
Richard Moulds,et al.
Quantum Random Number Generators
,
2016
.
[8]
Ming Li,et al.
An Introduction to Kolmogorov Complexity and Its Applications
,
2019,
Texts in Computer Science.
[9]
Boris Ryabko.
On asymptotically optimal tests for random number generators
,
2019,
IACR Cryptol. ePrint Arch..
[10]
Elaine B. Barker,et al.
A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications
,
2000
.
[11]
J. V. Rosenhead,et al.
The Advanced Theory of Statistics: Volume 2: Inference and Relationship
,
1963
.
[12]
Thomas M. Cover,et al.
Elements of Information Theory
,
2005
.
[13]
André Nies,et al.
Calibrating Randomness
,
2006,
Bull. Symb. Log..
[14]
Jaakko Astola,et al.
Compression-Based Methods of Statistical Analysis and Prediction of Time Series
,
2016,
Springer International Publishing.