]> git.saurik.com Git - redis.git/blobdiff - src/redis.h
clusterGetRandomName() generalized into getRandomHexChars() so that we can use it...
[redis.git] / src / redis.h
index fdf7f08d335ce75c2b89e5d0ca6ed92f72713ef3..3ecedd4caee200acbcfda329cbd33a68166c7680 100644 (file)
@@ -58,6 +58,8 @@
 #define REDIS_REPL_TIMEOUT 60
 #define REDIS_REPL_PING_SLAVE_PERIOD 10
 
+#define REDIS_RUN_ID_SIZE 40
+
 /* Protocol and I/O related defines */
 #define REDIS_MAX_QUERYBUF_LEN  (1024*1024*1024) /* 1GB max query buffer. */
 #define REDIS_IOBUF_LEN         (1024*16)  /* Generic I/O buffer size */
@@ -813,6 +815,7 @@ dictType hashDictType;
 /* Utils */
 long long ustime(void);
 long long mstime(void);
+void getRandomHexChars(char *p, unsigned int len);
 
 /* networking.c -- Networking and Client related operations */
 redisClient *createClient(int fd);