mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15: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
|
@ -113,5 +113,5 @@ bool PacketFilter::MatchFilter(const Filter& f, const IP_Hdr& ip,
|
|||
return false;
|
||||
}
|
||||
|
||||
return uint32_t(bro_random()) < f.probability;
|
||||
return uint32_t(zeek::random_number()) < f.probability;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue