MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / random64

Function random64

src/common/utils.cpp:1687–1693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1685}
1686
1687void random64(Firebird::string& randomValue, FB_SIZE_T length)
1688{
1689 Firebird::UCharBuffer binRand;
1690 Firebird::GenerateRandomBytes(binRand.getBuffer(length), length);
1691 base64(randomValue, binRand);
1692 randomValue.resize(length, '$');
1693}
1694
1695void logAndDie(const char* text)
1696{

Callers 1

hashMethod · 0.85

Calls 4

base64Function · 0.85
GenerateRandomBytesFunction · 0.50
getBufferMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected