Skip to content

jirigav/cooltest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoolTest

CoolTest is a randomness-testing tool. It uses first half of provided data to construct a distinguisher based on a histogram construction. Then it evaluates the distinguisher on the second half of the data to evaluate the probability of the data being generated by true random number generator.

This tool is based on our paper published at IFIP SEC 2025.

How to use CoolTest

Installation

Download binary from latest release

You can download binaries for the latest release from GitHub releases.

Cargo install

If you have Rust installed on your system, you can install CoolTest with:

cargo install cooltest

Compile from sources

Clone the repository:

git clone https://github.com/jirigav/cooltest.git
cd cooltest

Build the project in release mode:

cargo build --release

Run the tool

After building, you can run CoolTest with default parameters using the following command:

cooltest <file>

Replace with the path to the binary file you wish to test.

To view all available options:

cooltest --help

Alternative p-value computation

For a more precise p-value computation, the python library SciPy can be used.

Python library SciPy (version 1.7.0 or newer) is required.

Build with:

cargo build --release --features scipy

License

CoolTest is released under the MIT license. See LICENSE for more information.

About

Randomness testing tool

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages