From 907cba15184e6a9d9c34be0bb20a3bdbfe0ad7a8 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Sun, 19 Dec 2021 17:23:24 +0300 Subject: [PATCH] utils: comments --- code/espurna/utils.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/espurna/utils.cpp b/code/espurna/utils.cpp index 3efa8f9129..c239d4c85e 100644 --- a/code/espurna/utils.cpp +++ b/code/espurna/utils.cpp @@ -205,9 +205,10 @@ bool sslFingerPrintChar(const char * fingerprint, char * destination) { // Helper functions // ----------------------------------------------------------------------------- -// using 'random device' as-is, s -// TODO notice that something like std::mt19937 and RandomDevice() as seed would require ~2KiB -// of space for it's internal `result_type state[std::mt19937::state_size]` (ref. sizeof()) +// using 'random device' as-is, while most common implementations +// would've used it as a seed for some generator func +// TODO notice that stdlib std::mt19937 struct needs ~2KiB for it's internal +// `result_type state[std::mt19937::state_size]` (ref. sizeof()) uint32_t randomNumber(uint32_t minimum, uint32_t maximum) { using Device = espurna::system::RandomDevice; using Type = Device::result_type;