fortuna-rng-by-mikh
v1.2.4
Published
A TypeScript library for cryptographic operations using Fortuna RNG
Readme
RNG Fortuna by Mikh
This is a JavaScript library for cryptographic RNG (Fortuna).
Installation from node.js
npm i fortuna-rng-by-mikhInstallation from git
Clone the repository:
git clone https://github.com/mikhos001/Fortuna_RNG_MIKH.git cd Fortuna_RNG_MIKHInstall the dependencies:
npm install
Usage
File Generation Tests
Run tests and create files:
npm run testCriteria:
- Test 1: Create 4mb binary output files from RNG
- Test 2 (Dice): Create a file with 10 million lines (one number per line) in the range 1-6
- Test 3 (Slot): Create a file with 10 million lines (one number per line) in the range 0-499
- Test 4 (Card shuffle deck 1): Create a file with 10 million lines (one number per line) in the range 0-51
- Test 5 (Card shuffle deck 8): Create a file with 10 million lines (one number per line) in the range 0-415
- Test 6 (Crash): Create a file with 10 million lines (one number per line) in the range 0-9900
- Test 7 (Mines): Create a file with 10 million lines (one number per line) in the range 0-249
- Test 8 (Plinko): Create a file with 10 million lines (one number per line) in the range 0-1
- Test 9 (two-up): Create a file with 10 million lines (one number per line) in the range 0-1
- Test 10 (Wheel of Fortune): Create a file with 10 million lines (one number per line) in the range 0-53
- Test 11 (Keno): Create a file with 10 million lines (one number per line) in the range 1-40
- Test 12 (Roulette): Create a file with 10 million lines (one number per line) in the range 0-37
The results of the tests will be displayed in the console.
Project Structure
package.json: Project configuration and dependencies.src/index.ts: Implementation of the Fortuna RNG algorithm.test/test.ts: Script for generating random numbers and saving them to files for various tests..gitignore: Git ignore file to excludenode_modulesandresultdirectories.LICENSE: License file for the project.
License
This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.
