pingora/tinyufo/src
Matthew Gumport 38a9d556b5 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-28 12:34:25 -07:00
..
buckets.rs TinyUFO: add the option to use sharded skip list for storage 2024-03-22 14:26:16 -07:00
estimation.rs make seeded estimator and plumbing for tests 2024-06-28 12:34:25 -07:00
lib.rs make seeded estimator and plumbing for tests 2024-06-28 12:34:25 -07:00