summaryrefslogtreecommitdiff
path: root/src/rand.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-09-23 15:06:07 +0200
committerantirez <antirez@gmail.com>2011-09-23 15:06:07 +0200
commit69786b262d2c899f61643f734e62ac5c8d3f7432 (patch)
tree5f3d6d299c8081d678c073d16dc1424a4ae23afc /src/rand.h
parentcbdac04a5ebadaef6c66a520b26ffc5fefff86a9 (diff)
downloadredis-69786b262d2c899f61643f734e62ac5c8d3f7432.tar.gz
Defined macro with bigger number that redisLrand48() can output.
Diffstat (limited to 'src/rand.h')
-rw-r--r--src/rand.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rand.h b/src/rand.h
index 8825196d2..b4aae5668 100644
--- a/src/rand.h
+++ b/src/rand.h
@@ -4,4 +4,6 @@
int32_t redisLrand48();
void redisSrand48(int32_t seedval);
+#define REDIS_LRAND48_MAX INT32_MAX
+
#endif