libc neutral random function derived from a drand48() implementation added. Will be used to replace Lua's math.random implementation.

This commit is contained in:
antirez
2011-09-23 14:51:48 +02:00
parent f96a8a8054
commit cbdac04a5e
3 changed files with 101 additions and 1 deletions

7
src/rand.h Normal file
View File

@ -0,0 +1,7 @@
#ifndef REDIS_RANDOM_H
#define REDIS_RANDOM_H
int32_t redisLrand48();
void redisSrand48(int32_t seedval);
#endif