MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / RM_GetRandomHexChars

Function RM_GetRandomHexChars

src/module.cpp:7416–7418  ·  view source on GitHub ↗

Like RedisModule_GetRandomBytes() but instead of setting the string to * random bytes the string is set to random characters in the in the * hex charset [0-9a-f]. */

Source from the content-addressed store, hash-verified

7414 * random bytes the string is set to random characters in the in the
7415 * hex charset [0-9a-f]. */
7416void RM_GetRandomHexChars(char *dst, size_t len) {
7417 getRandomHexChars(dst,len);
7418}
7419
7420/* --------------------------------------------------------------------------
7421 * ## Modules API exporting / importing

Callers

nothing calls this directly

Calls 1

getRandomHexCharsFunction · 0.85

Tested by

no test coverage detected