MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / CreateObfuscateKey

Method CreateObfuscateKey

src/dbwrapper.cpp:221–227  ·  view source on GitHub ↗

* Returns a string (consisting of 8 random bytes) suitable for use as an * obfuscating XOR key. */

Source from the content-addressed store, hash-verified

219 * obfuscating XOR key.
220 */
221std::vector<unsigned char> CDBWrapper::CreateObfuscateKey() const
222{
223 unsigned char buff[OBFUSCATE_KEY_NUM_BYTES];
224 GetRandBytes(buff, OBFUSCATE_KEY_NUM_BYTES);
225 return std::vector<unsigned char>(&buff[0], &buff[OBFUSCATE_KEY_NUM_BYTES]);
226
227}
228
229bool CDBWrapper::IsEmpty()
230{

Callers

nothing calls this directly

Calls 1

GetRandBytesFunction · 0.85

Tested by

no test coverage detected