Files
assaultcube-/source/src/crypto_tools.h
T
flowtron e61d9f6c45 crypto >= hash
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5636 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-16 11:11:05 +00:00

16 lines
324 B
C

#ifndef __CRYPTO_TOOLS_H__
#define __CRYPTO_TOOLS_H__
#ifdef NULL
#undef NULL
#endif
#define NULL 0
typedef unsigned int uint;
#define rndmt(x) ((int)(randomMT()&0xFFFFFF)%(x))
#define rndscale(x) (float((randomMT()&0xFFFFFF)*double(x)/double(0xFFFFFF)))
extern void seedMT(uint seed);
extern uint randomMT(void);
#endif