Fix PRNG code and windows compilation errors

This commit is contained in:
brenosilva
2012-06-15 19:27:59 +00:00
parent a958dfd495
commit 8bf46a3d87
4 changed files with 26 additions and 39 deletions

View File

@@ -27,13 +27,6 @@
#define INT32_MAX (2147483647)
#endif
struct glinear {
uint32_t seed;
uint32_t mod;
uint32_t mul;
uint32_t add;
};
#define N16BITS_MASK 65536L
#define N16BITS_MAX 0xFFFF
#define N15BITS_MASK 0x7FFF