]>
git.zerfleddert.de Git - proxmark3-svn/blob - common/prng.h
1 //-----------------------------------------------------------------------------
2 //-----------------------------------------------------------------------------
3 // Burtle Prng - Modified. 42iterations instead of 20.
4 // ref: http://burtleburtle.net/bob/rand/smallprng.html
5 //-----------------------------------------------------------------------------
11 typedef struct prng_ctx
{
18 //uint32_t burtle_get( prng_ctx *x );
19 uint32_t burtle_get_mod( prng_ctx
*x
);
20 void burtle_init_mod(prng_ctx
*x
, uint32_t seed
);
21 void burtle_init(prng_ctx
*x
, uint32_t seed
);
23 uint32_t GetSimplePrng( uint32_t seed
);