diff --git a/src/util.cc b/src/util.cc index 843b04a092..be016b89f4 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 13c502583c..701f6f6736 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