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

Method randbytes

src/random.cpp:398–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398std::vector<unsigned char> FastRandomContext::randbytes(size_t len)
399{
400 std::vector<unsigned char> ret(len);
401 if (len > 0) {
402 rng.Output(&ret[0], len);
403 }
404 return ret;
405}
406
407FastRandomContext::FastRandomContext(const uint256& seed) : requires_seed(false), bytebuf_size(0), bitbuf_size(0)
408{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 1

OutputMethod · 0.80

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64