Remove unused util::detail::rand64bit method

This commit is contained in:
Tim Wojtulewicz 2022-06-30 14:38:01 -07:00
parent d3b6f9f7a5
commit ef659b8e82
2 changed files with 0 additions and 14 deletions

View file

@ -538,18 +538,6 @@ long int random_number()
return zeek_rand_state; 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") TEST_CASE("util is_package_loader")
{ {
CHECK(is_package_loader("/some/path/__load__.zeek") == true); CHECK(is_package_loader("/some/path/__load__.zeek") == true);

View file

@ -126,8 +126,6 @@ unsigned int initial_seed();
// Returns true if the user explicitly set a seed via init_random_seed(); // Returns true if the user explicitly set a seed via init_random_seed();
extern bool have_random_seed(); extern bool have_random_seed();
extern uint64_t rand64bit();
/** /**
* A platform-independent PRNG implementation. Note that this is not * A platform-independent PRNG implementation. Note that this is not
* necessarily a "statistically sound" implementation as the main purpose is * necessarily a "statistically sound" implementation as the main purpose is