mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
Deprecate bro_random(), replace with zeek::random_number()
Avoiding the use of zeek::random() due to potential for confusion with random().
This commit is contained in:
parent
6bbb0a6b48
commit
bde38893ce
7 changed files with 23 additions and 10 deletions
|
@ -20,7 +20,7 @@ AnonymizeIPAddr* zeek::detail::ip_anonymizer[NUM_ADDR_ANONYMIZATION_METHODS] = {
|
|||
|
||||
static uint32_t rand32()
|
||||
{
|
||||
return ((bro_random() & 0xffff) << 16) | (bro_random() & 0xffff);
|
||||
return ((zeek::random_number() & 0xffff) << 16) | (zeek::random_number() & 0xffff);
|
||||
}
|
||||
|
||||
// From tcpdpriv.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue