MCPcopy Create free account
hub / github.com/F-Stack/f-stack / RM_GetRandomBytes

Function RM_GetRandomBytes

app/redis-6.2.6/src/module.c:7217–7219  ·  view source on GitHub ↗

Return random bytes using SHA1 in counter mode with a /dev/urandom * initialized seed. This function is fast so can be used to generate * many bytes without any effect on the operating system entropy pool. * Currently this function is not thread safe. */

Source from the content-addressed store, hash-verified

7215 * many bytes without any effect on the operating system entropy pool.
7216 * Currently this function is not thread safe. */
7217void RM_GetRandomBytes(unsigned char *dst, size_t len) {
7218 getRandomBytes(dst,len);
7219}
7220
7221/* Like RedisModule_GetRandomBytes() but instead of setting the string to
7222 * random bytes the string is set to random characters in the in the

Callers

nothing calls this directly

Calls 1

getRandomBytesFunction · 0.85

Tested by

no test coverage detected