clusterGetRandomName() generalized into getRandomHexChars() so that we can use it for the run_id field as well.

This commit is contained in:
antirez
2012-03-08 10:08:44 +01:00
parent 4d3bbf3590
commit 44f508f1a8
3 changed files with 52 additions and 15 deletions

View 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);