pingora/.bleep
Matthew Gumport f8f08c7669 make seeded estimator and plumbing for tests
I started fidgeting with another one of the tests breaking because of the
estimator not being deterministic, and then decided to do this another way.

This adds `seeded` and `seeded_compact` constructors to the estimator which are
used in tests to override the LFU. These are hidden behind `cfg(test)`. The
`random_status` field of the UFO object is also overridden with the same seeds
as used for the seeded LFU.

These make the tests pass consistently without requiring further monkeying.
2024-06-25 23:30:18 +00:00

1 line
No EOL
40 B
Text

361d88592075f7f98f581b139d0349f1b70190a2