]> git.zerfleddert.de Git - proxmark3-svn/blob - common/prng.h
FIX: coverity scan error CID 121781, unused value. error 0x88 will be overritten...
[proxmark3-svn] / common / prng.h
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>
11 typedef 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 );
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 );
22
23 uint32_t GetSimplePrng( uint32_t seed );
24 #endif /* __PRNG_H */
Impressum, Datenschutz