GithubHelp home page GithubHelp logo

alexpukall / prng64 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 26 KB

Pukall PRNG 64 : mix the output of an LFSR 64 and an LCG 64 (C language or 6502 Assembly)

C 34.64% Assembly 65.36%
64-bit 64-bits 64bit 64bits congruential generator lcg lfsr linear linear-congruential

prng64's Introduction

PRNG64

Alexander PUKALL PRNG 64

Pseudorandom Number Generator

LSFR 64 + LCG 64

128 bits seed

Source code in C or 6502 Assembler

Mix the output of a 64-bit Linear feedback shift register and the output of a 64-bit Linear congruential generator

The output will be 2^64 random bits

With lfsr seed = 0xffffffffffffffff and lcg seed = 0xffffffffffffffff

the 50 first bytes are:

83 CA C9 DF F3 82 B1 EB 1D 2D A2 6A 08 A4 7C 58 99 EB 8A 4F 99 B0 43 01 66 66 49 EC 77 C2 6E 91 6E E0 28 58 DD EF 5D 9D BE F4 DF 57 1D 27 CA B4 2B 16

Practrand test : ./prng64 | /rng_test stdin8 All tests OK (no anomalies), test with 8TB

CODE FREE TO USE EVEN FOR COMMERCIAL APPLICATIONS NO RESTRICTION

C Code compiled on Raspberry pi with : gcc prng64.c -o prng64

prng64's People

Contributors

alexpukall avatar

Stargazers

 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.