--- deliantra/server/include/define.h 2007/01/20 22:09:52 1.44 +++ deliantra/server/include/define.h 2007/01/27 02:19:37 1.45 @@ -923,20 +923,8 @@ /* Cut off point of when an object is put on the active list or not */ #define MIN_ACTIVE_SPEED 1e-5 -/* - * random() is much better than rand(). If you have random(), use it instead. - * You shouldn't need to change any of this - * - * 0.93.3: It looks like linux has random (previously, it was set below - * to use rand). Perhaps old version of linux lack rand? IF you run into - * problems, add || defined(__linux__) the #if immediately below. - * - * 0.94.2 - you probably shouldn't need to change any of the rand stuff - * here. - */ - -#define RANDOM() (rndm.next () & 0x7fffffffU) -#define SRANDOM(xyz) //TODO, get rid of +#define RANDOM() (rndm.next () & 0xffffffU) +#define SRANDOM(xyz) rndm.seed (xyz) //TODO, get rid of /* Returns the weight of the given object. Note: it does not take the number of * items (nrof) into account.