Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Anilm3 committed Mar 25, 2024
1 parent 69df1a7 commit d0464a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
17 changes: 0 additions & 17 deletions src/parser/actions_parser.hpp

This file was deleted.

7 changes: 5 additions & 2 deletions src/uuid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@
namespace ddwaf {

namespace {
// System clock is used to provide a more unique seed compared to the
// monotonic clock, which is backed by a steady clock, in practice it
// likely doesn't make a difference.
using clock = std::chrono::system_clock;

auto init_rng()
{
auto seed = static_cast<uint64_t>(std::chrono::system_clock::now().time_since_epoch().count());
return std::mt19937_64{seed};
return std::mt19937_64{static_cast<uint64_t>(clock::now().time_since_epoch().count())};
}

} // namespace
Expand Down

0 comments on commit d0464a2

Please sign in to comment.