Searched refs:RDG_rand (Results 1 – 2 of 2) sorted by relevance
46 static U32 RDG_rand(U32* src) in RDG_rand() function80 U32 const id = RDG_rand(seed) & LTMASK; in RDG_genChar()87 return RDG_rand(seedPtr) & 0x7FFF; in RDG_rand15Bits()92 if (RDG_rand(seedPtr) & 7) return (RDG_rand(seedPtr) & 0xF); /* small length */ in RDG_randLength()93 return (RDG_rand(seedPtr) & 0x1FF) + 0xF; in RDG_randLength()106 size_t size0 = RDG_rand(seedPtr) & 3; in RDG_genBlock()108 size0 += RDG_rand(seedPtr) & (size0-1); /* because size0 is power of 2*/ in RDG_genBlock()129 U32 const repeatOffset = (RDG_rand(seedPtr) & 15) == 2; in RDG_genBlock()
61 static unsigned int RDG_rand(U32* src) in RDG_rand() function94 U32 id = RDG_rand(seed) & LTMASK; in RDG_genChar()100 #define RDG_RAND15BITS ((RDG_rand(seed) >> 3) & 32767)101 #define RDG_RANDLENGTH ( ((RDG_rand(seed) >> 7) & 7) ? (RDG_rand(seed) & 15) : (RDG_rand(seed) & 5…111 size_t size0 = RDG_rand(seed) & 3; in RDG_genBlock()113 size0 += RDG_rand(seed) & (size0-1); /* because size0 is power of 2*/ in RDG_genBlock()