entro-spin 1.0.1

Entro Spin is a 64-bit, non-deterministic true random number generator algorithm.
Documentation

Entro Spin

Description

Entro Spin is a 64-bit, seedless, non-deterministic true random number generator algorithm.

Code Example

The following code demonstrates an example implementation included in this package.

extern crate entro_spin;

use entro_spin::entro_spin::entro_spin;

fn main() {
    let mut i: usize = 0;

    while i != 10 {
        println!("{}", entro_spin());
        i += 1;
    }
}

To test the Cargo package, execute the following command.

cargo test

Explanation

EntroCraft maintains this open-source package with the permissive MIT license.

The only valid source of true entropy is high-resolution, linear time with a significantly-higher precision relative to the precision of the random result.

With this in mind, each digit in each randomly-generated 64-bit number is randomized with Entro Shift and UNIX_EPOCH with nanosecond precision.

High-resolution system time with a minimum precision of milliseconds is required, although nanosecond precision is recommended.

It relies on SystemTime, so a system clock failure translates to a program runtime failure.