Ejemplo n.º 1
0
void RandomNumberGenerator::GenerateBlock(byte *output, size_t size)
{
	CRYPTOPP_UNUSED(output), CRYPTOPP_UNUSED(size);

#if 0
	// This breaks AutoSeededX917RNG<T> generators.
	throw NotImplemented("RandomNumberGenerator: GenerateBlock not implemented");
#endif

	ArraySink s(output, size);
	GenerateIntoBufferedTransformation(s, DEFAULT_CHANNEL, size);
}
Ejemplo n.º 2
0
void RandomNumberGenerator::DiscardBytes(size_t n)
{
	GenerateIntoBufferedTransformation(TheBitBucket(), DEFAULT_CHANNEL, n);
}
Ejemplo n.º 3
0
void OldRandomPool::GenerateBlock(byte *outString, size_t size)
{
	ArraySink sink(outString, size);
	GenerateIntoBufferedTransformation(sink, DEFAULT_CHANNEL, size);
}
Ejemplo n.º 4
0
void RandomNumberGenerator::GenerateBlock(byte *output, size_t size)
{
	ArraySink s(output, size);
	GenerateIntoBufferedTransformation(s, BufferedTransformation::NULL_CHANNEL, size);
}