Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthias Mayr
limbo
Commits
5a3ccc76
Commit
5a3ccc76
authored
Feb 06, 2020
by
Matthias Mayr
Browse files
Bug: Unused variables in rand_utils triggered warnings.
parent
f263656b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/external/rand_utils.hpp
View file @
5a3ccc76
...
...
@@ -448,7 +448,8 @@ namespace randutils {
default_seeds
local_entropy
()
{
// 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
// on some platforms it could be expensive to call or "use up" vital
...
...
@@ -481,7 +482,8 @@ namespace randutils {
// The address of the time function. It should hopefully be in
// a system library that hopefully isn't always in the same place
// (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
// a system library that hopefully isn't always in the same place
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment