Added a method to GPrng to get a random uint32, which is about twice as fast as GetRandom<uint32_t>

This commit is contained in:
Leonetienne
2022-05-26 12:52:04 +02:00
parent e9377699f2
commit 800140bafa
2 changed files with 49 additions and 0 deletions

View File

@@ -46,6 +46,9 @@ namespace Leonetienne::GCrypt {
return t;
}
//! Will return a random unsigned 32-bit integer
std::uint32_t operator()();
//! Will return a random block
Block GetBlock();