]> git.zerfleddert.de Git - proxmark3-svn/blame_incremental - common/prng.h
ADD: Visa2000 demod
[proxmark3-svn] / common / prng.h
... / ...
CommitLineData
1//-----------------------------------------------------------------------------
2//-----------------------------------------------------------------------------
3// Burtle Prng - Modified. 42iterations instead of 20.
4// ref: http://burtleburtle.net/bob/rand/smallprng.html
5//-----------------------------------------------------------------------------
6
7#ifndef __PRNG_H
8#define __PRNG_H
9#include <stdint.h>
10#include <stddef.h>
11typedef struct prng_ctx {
12 uint32_t a;
13 uint32_t b;
14 uint32_t c;
15 uint32_t d;
16} prng_ctx;
17
18//uint32_t burtle_get( prng_ctx *x );
19uint32_t burtle_get_mod( prng_ctx *x );
20void burtle_init_mod(prng_ctx *x, uint32_t seed );
21void burtle_init(prng_ctx *x, uint32_t seed );
22
23uint32_t GetSimplePrng( uint32_t seed );
24#endif /* __PRNG_H */
Impressum, Datenschutz