int
px_add_entropy(const uint8 *data, unsigned count)
{
	system_reseed();
	fortuna_add_entropy(data, count);
	return 0;
}
Beispiel #2
0
int tm_entropy_seed (void)
{
	system_reseed();

	// Doesn't fail, by default.
	return 0;
}
int
px_get_random_bytes(uint8 *dst, unsigned count)
{
	system_reseed();
	fortuna_get_bytes(count, dst);
	return 0;
}