Improve random number generator

This commit is contained in:
brenosilva
2012-06-15 13:15:51 +00:00
parent 517abc595b
commit 3caaf60fa8
2 changed files with 58 additions and 1 deletions

View File

@@ -34,6 +34,11 @@ struct glinear {
uint32_t add;
};
#define 16BITS_MASK 65536L
#define 16BITS_MASK 0xFFFF
#define 15BITS_MASK 0x7FFF
#define 31BITS_MASK 0x7FFFFFFF
char DSOLOCAL *hmac(modsec_rec *msr,const unsigned char *key, int key_len,
char *msg, int msglen);
unsigned char DSOLOCAL *do_hash_link(modsec_rec *msr, char *link,