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:
Jon Siwek 2020-07-22 09:35:50 -07:00
parent 6bbb0a6b48
commit bde38893ce
7 changed files with 23 additions and 10 deletions

View file

@ -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.