Benjamin Bannier
489534bd74
Use clang-format for all files in testing/btest/plugins
.
...
This is a fixup commit for dc65b6248c
.
2022-07-13 17:58:53 +02:00
Tim Wojtulewicz
dc65b6248c
Run clang-format on all of our plugin test c++ files
2022-07-12 11:59:55 -07:00
Tim Wojtulewicz
7c4fd382d9
Code modernization: Convert from deprecated C standard library headers
2022-06-27 09:47:31 -07:00
Tim Wojtulewicz
0618be792f
Remove all of the random single-file deprecations
...
These are the changes that don't require a ton of changes to other files outside
of the original removal.
2021-01-27 10:52:40 -07:00
Tim Wojtulewicz
874e170341
Update plugin btests for namespace changes
2020-08-24 12:07:03 -07:00
Johanna Amann
417a6eb1e9
Completely remove all traces of the COUNTER type.
...
Relates to GH-1095
2020-07-30 12:11:05 -07:00
Jon Siwek
d486af06b1
Add zeek::max_random() & fix misuse of RAND_MAX w/ zeek::random_number()
...
In deterministic mode, RAND_MAX is not related to the result of
zeek::random_number() (formerly bro_random()), but some logic was
using RAND_MAX as indication of the possible range of values. The
new zeek::max_random() will give the correct upper-bound regardless
of whether deterministic-mode is used.
2020-07-22 14:01:33 -07:00
Jon Siwek
bde38893ce
Deprecate bro_random(), replace with zeek::random_number()
...
Avoiding the use of zeek::random() due to potential for confusion
with random().
2020-07-22 14:01:33 -07:00
Tim Wojtulewicz
ed13972924
Move Type types to zeek namespace
2020-06-09 17:20:45 -07:00
Tim Wojtulewicz
d53c1454c0
Remove 'using namespace std' from SerialTypes.h
...
This unfortunately cuases a ton of flow-down changes because a lot of other
code was depending on that definition existing. This has a fairly large chance
to break builds of external plugins, considering how many internal ones it broke.
2020-04-07 15:59:59 -07:00
Dominik Charousset
c1f3fe7829
Switch from header guards to pragma once
2019-09-17 14:10:30 +02:00
Jon Zeolla
615ff78282
Bro plugins should support a patch version (x.y.z)
2018-09-30 20:30:22 -04:00
Johanna Amann
26d9517774
Use the deterministic bro_random in a test, instead of os random().
...
The previous test stopped working on FreeBSD 11.0, and I am actually not
quite sure why this ever worked as stable as it did.
2016-10-06 12:56:52 -07:00
Robin Sommer
3d1442e86b
Test case for a dynamic input reader.
2014-07-31 12:07:34 -07:00