MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / get_random_bytes

Function get_random_bytes

libcppcryptfs/util/util.cpp:442–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440
441
442bool
443get_random_bytes(CryptContext *con, unsigned char *buf, DWORD len)
444{
445 if (con)
446 return con->m_prand_bytes->GetRandomBytes(buf, len);
447 else
448 return get_sys_random_bytes(buf, len);
449}
450
451
452DWORD

Callers 4

WriteVersionAndFileIdMethod · 0.85
WriteMethod · 0.85
SetEndOfFileMethod · 0.85
create_dir_ivFunction · 0.85

Calls 2

get_sys_random_bytesFunction · 0.85
GetRandomBytesMethod · 0.80

Tested by

no test coverage detected