Git Product home page Git Product logo

true-random-number-generator's Introduction

True Random Number Generator

Based on Non-Recurring Improved Random Number Generator - a new step to improve cryptographic algorithms

Implementation of DOI: 10.4108/eai.12-6-2018.154813 article in Python 3.9.

The quality of the generated numbers depends mainly on the video file. Ideally, it should be as dynamic as possible. The generator generates a million numbers in a maximum of 10 seconds (depending on your CPU, of course)

Numbers are saved as raw binary so a million 8-bit numbers will take up exactly 1,000,000 bytes

Executing:

python main.py --new [range of numbers]

python main.py --append [range of numbers]

python main.py --hist

Notes

The generator output file is called binaryout.bin, it is created in the main folder. Diehard tests also use it.

Histogram of generated 50M 8bit numbers


Diehard's tests

All tests need at least 38 million 32-bit numbers = 152 million 8-bit numbers. All tests are described here

The implementation of each of the tests is carried out by the Kolmogorov-Smirnov test with a uniform distribution in the range from 0 to 1 of the obtained p_value of each unit test.

Implemented

  • Count-the-1's test
  • Parking Lot test
  • Squeeze test

Executing:

python main.py --test


Who knows, he knows

Jeśli znalazłeś to repozytorium szukając kodu na BST, daj chociaż gwiazdkę 😄

true-random-number-generator's People

Contributors

d4vos avatar stim4pl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.