mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Remove unused util::detail::rand64bit method
This commit is contained in:
parent
d3b6f9f7a5
commit
ef659b8e82
2 changed files with 0 additions and 14 deletions
12
src/util.cc
12
src/util.cc
|
@ -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);
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue