aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/rng/system_rng/system_rng.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-11-28 11:43:00 -0500
committerJack Lloyd <[email protected]>2015-11-28 11:43:00 -0500
commit466cc0fb0b1a072584c26f0949d377510c440d0d (patch)
tree1ddf0107d788b1696304bdb604fe685a63163d5e /src/lib/rng/system_rng/system_rng.cpp
parent3bdf9d1bd8345fc2aa0f1c5ec0261921a77988cf (diff)
Push the hardcoded entropy estimates up to build.h
Defaults should be fine for everyone but it makes the values more transparent
Diffstat (limited to 'src/lib/rng/system_rng/system_rng.cpp')
-rw-r--r--src/lib/rng/system_rng/system_rng.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/rng/system_rng/system_rng.cpp b/src/lib/rng/system_rng/system_rng.cpp
index 02ad07736..50ec696a0 100644
--- a/src/lib/rng/system_rng/system_rng.cpp
+++ b/src/lib/rng/system_rng/system_rng.cpp
@@ -40,17 +40,17 @@ class System_RNG_Impl : public RandomNumberGenerator
void clear() override {}
std::string name() const override { return "system"; }
- size_t reseed_with_sources(Entropy_Sources& srcs,
- size_t poll_bits,
- std::chrono::milliseconds poll_timeout) override
+ size_t reseed_with_sources(Entropy_Sources&,
+ size_t /*poll_bits*/,
+ std::chrono::milliseconds /*timeout*/) override
{
+ // We ignore it and assert the PRNG is seeded.
+ // TODO: could poll and write it to /dev/urandom to help seed it
return 0;
}
void add_entropy(const byte[], size_t) override
{
- // We could write this back to /dev/urandom to help seed the PRNG
- // Unclear if this is valuable on current systems
}
private: