Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Comput. Sci.

Sec. Computer Security

Volume 7 - 2025 | doi: 10.3389/fcomp.2025.1642566

This article is part of the Research TopicCyber Resilience in IoE: Integrating Artificial Intelligence for Robust SecurityView all 6 articles

Entropy Measurement and On-line Quality Control of Bit Streams by a True Random Bit Generator

Provisionally accepted
Cesare  CaratozzoloCesare Caratozzolo1*Valeria  RossiValeria Rossi1Kamil  WitekKamil Witek1,2Alberto  TrombettaAlberto Trombetta3Mateusz  BaszczykMateusz Baszczyk2Piotr  DoroszPiotr Dorosz2Wojciech  KucewiczWojciech Kucewicz2Massimo  CacciaMassimo Caccia1
  • 1Department of Science and High Technology, University of Insubria, Como, Italy
  • 2Akademia Gorniczo-Hutnicza im Stanislawa Staszica w Krakowie, Kraków, Poland
  • 3Universita degli Studi dell'Insubria, Varese, Italy

The final, formatted version of the article will be published soon.

Abstract—Generating random bit streams is required in various applications, most notably cyber-security essential for Internet of Everything applications to enable secure communication between interconnected devices. Ensuring high-quality and robust randomness is crucial to mitigate risks associated with predictability and system compromise. True random numbers provide the highest unpredictability levels. However, known systematic biases that can emerge from physical imperfections, environmental variations, and device aging in the processes exploited for the random number generation must be carefully monitored. This paper reports the implementation and characterization of an on-line procedure for the detection of anomalies in a true random bit stream. It is based on the NIST Adaptive Proportion and Repetition Count tests, complemented by statistical analysis relying on the Monobit and RUNS. The procedure is firmware im-plemented through dedicated hardware accelerators processing configurable-length sequences, with automated anomaly detection triggering alerts after three consecutive threshold violations. The implementation is performed simultaneously with the bit stream generation, and provides as well an estimate of the entropy of the source. A statistical analysis of the results coming from the NIST procedure to evaluate the symbols of the bit-stream as Independently and Identically Distributed is also performed and leads to a computation of the minimum entropy of the source that cross-checks the previously mentioned estimate. The experimental validation of the approach is performed upon the bit streams generated by a quantum, silicon-based entropy source.

Keywords: statistical, test, QRNG, trnG, entropy, Min-entropy

Received: 06 Jun 2025; Accepted: 15 Sep 2025.

Copyright: © 2025 Caratozzolo, Rossi, Witek, Trombetta, Baszczyk, Dorosz, Kucewicz and Caccia. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Cesare Caratozzolo, cesare.caratozzolo@uninsubria.it

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.