From ef659b8e823ffe78cfd8160a07c9c88a8fdbb3be Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Thu, 30 Jun 2022 14:38:01 -0700 Subject: [PATCH] Remove unused util::detail::rand64bit method --- src/util.cc | 12 ------------ src/util.h | 2 -- 2 files changed, 14 deletions(-) diff --git a/src/util.cc b/src/util.cc index 843b04a092d..be016b89f49 100644 --- a/src/util.cc +++ b/src/util.cc @@ -538,18 +538,6 @@ long int random_number() return zeek_rand_state; } -// Returns a 64-bit random string. -uint64_t rand64bit() - { - uint64_t base = 0; - int i; - - static_assert(RAND_MAX == 2147483647); // 2^32-1 - for ( i = 1; i <= 2; ++i ) - base = (base << 32) | detail::random_number(); - return base; - } - TEST_CASE("util is_package_loader") { CHECK(is_package_loader("/some/path/__load__.zeek") == true); diff --git a/src/util.h b/src/util.h index 13c502583cd..701f6f6736d 100644 --- a/src/util.h +++ b/src/util.h @@ -126,8 +126,6 @@ unsigned int initial_seed(); // Returns true if the user explicitly set a seed via init_random_seed(); extern bool have_random_seed(); -extern uint64_t rand64bit(); - /** * A platform-independent PRNG implementation. Note that this is not * necessarily a "statistically sound" implementation as the main purpose is