Commit 5a3ccc76 authored by Matthias Mayr's avatar Matthias Mayr
Browse files

Bug: Unused variables in rand_utils triggered warnings.

parent f263656b
...@@ -448,7 +448,8 @@ namespace randutils { ...@@ -448,7 +448,8 @@ namespace randutils {
default_seeds local_entropy() default_seeds local_entropy()
{ {
// This is a constant that changes every time we compile the code // This is a constant that changes every time we compile the code
constexpr uint32_t compile_stamp = fnv(2166136261U, __DATE__ __TIME__ __FILE__); // TODO Matthias: commented out since it causes an unused variable warning
// constexpr uint32_t compile_stamp = fnv(2166136261U, __DATE__ __TIME__ __FILE__);
// Some people think you shouldn't use the random device much because // Some people think you shouldn't use the random device much because
// on some platforms it could be expensive to call or "use up" vital // on some platforms it could be expensive to call or "use up" vital
...@@ -481,7 +482,8 @@ namespace randutils { ...@@ -481,7 +482,8 @@ namespace randutils {
// The address of the time function. It should hopefully be in // The address of the time function. It should hopefully be in
// a system library that hopefully isn't always in the same place // a system library that hopefully isn't always in the same place
// (might not change until system is rebooted though) // (might not change until system is rebooted though)
auto time_func = hash(&std::chrono::high_resolution_clock::now); // TODO Matthias: commented out since it triggers an unused variable warning
// auto time_func = hash(&std::chrono::high_resolution_clock::now);
// The address of the exit function. It should hopefully be in // The address of the exit function. It should hopefully be in
// a system library that hopefully isn't always in the same place // a system library that hopefully isn't always in the same place
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment