diff options
author | antirez <antirez@gmail.com> | 2011-09-23 14:51:48 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2011-09-23 14:51:48 +0200 |
commit | cbdac04a5ebadaef6c66a520b26ffc5fefff86a9 (patch) | |
tree | fbf3c5119ca2dfdd39c00eb5f77479837f253efb /src/rand.h | |
parent | f96a8a8054b3b699c2fba797bdcd203dda1168ce (diff) | |
download | redis-cbdac04a5ebadaef6c66a520b26ffc5fefff86a9.tar.gz |
libc neutral random function derived from a drand48() implementation added. Will be used to replace Lua's math.random implementation.
Diffstat (limited to 'src/rand.h')
-rw-r--r-- | src/rand.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rand.h b/src/rand.h new file mode 100644 index 000000000..8825196d2 --- /dev/null +++ b/src/rand.h @@ -0,0 +1,7 @@ +#ifndef REDIS_RANDOM_H +#define REDIS_RANDOM_H + +int32_t redisLrand48(); +void redisSrand48(int32_t seedval); + +#endif |