Giter Club home page Giter Club logo

pcg's Introduction

Code for the algorithms that recover seeds for the PCG pseudo-random number 
generator.

Written by Julia Sauvage ([email protected]) and
Charles Bouillaguet ([email protected]).

This code is in the public domain.


challenges/ folder: tools to generate challenge inputs and expected output.


Cknown/ folder: case where the default increment is used. 

main.c: Multi-thread program that recovers the seed from 3 consecutive outputs. 
        Takes about 25 CPU-minutes. A simple procedure is repeated 2**37 times.



Cunknown/ folder: case where an unknown increment is used (default in numpy). 

main.c: MPI program that recovers a partial difference between two states from
        10 consecutive outputs. Takes about 12500 CPU-hours. Uses MPI, so is
        parallelizable on a cluster. A simple procedure is repeated 2**51 times.

step2.py: given 64 consecutive outputs and the result from the previous program,
          finds the full difference between any two consecutive states. Very
          fast.

step3.py: given 64 consecutive outputs and the result from the two previous 
          programs, prints the seeds. Very fast.



Other folders: journal article, slides, random junk.

pcg's People

Contributors

wildjujube 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.