Add fuzz tests, rename fuzz tests and fix panic found by fuzzing (#72)

* begin adding better fuzz test

* finish adding working fuzzer

* implement mutateipv4

* fuzzer finds a panic in ICMP client on receive empty payload

* rename fuzz tests to reflect fuzz methodology
This commit is contained in:
Pat Whittingslow
2026-04-11 11:09:51 -03:00
committed by GitHub
parent 68461b4416
commit 66a1aec593
226 changed files with 835 additions and 20 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ func Prand32[T ~uint32](seed T) T {
}
// Prand32 generates a pseudo random number from a seed.
func Prand64[T ~uint64](seed T) T {
func Prand64[T ~uint64 | ~int64](seed T) T {
seed ^= seed << 13
seed ^= seed >> 7
seed ^= seed << 17