Modules API: RM_GetRandomBytes() / GetRandomHexChars().

This commit is contained in:
antirez
2018-04-05 13:24:22 +02:00
parent c75582889a
commit b2868c7b9c
4 changed files with 69 additions and 58 deletions

View File

@ -1366,7 +1366,8 @@ void moduleNotifyKeyspaceEvent(int type, const char *event, robj *key, int dbid)
/* Utils */
long long ustime(void);
long long mstime(void);
void getRandomHexChars(char *p, unsigned int len);
void getRandomHexChars(char *p, size_t len);
void getRandomBytes(unsigned char *p, size_t len);
uint64_t crc64(uint64_t crc, const unsigned char *s, uint64_t l);
void exitFromChild(int retcode);
size_t redisPopcount(void *s, long count);