ayazhafiz / xorf

Xor filters - efficient probabilistic hashsets. Faster and smaller than bloom and cuckoo filters.
MIT License
120 stars 26 forks source link

Reproducible fingerprints #77

Open wirelyre opened 9 months ago

wirelyre commented 9 months ago

It would be nice to be able to reproduce fingerprints exactly!

Right now the only configuration options are "initialize to 0" (reproducible) or "use the thread RNG" (not reproducible), but maybe you could optionally pass in your own RNG.

https://github.com/ayazhafiz/xorf/blob/def7fcd6b70b811b5d0a09c2b308443586dd4d31/src/prelude/mod.rs#L92-L110

ayazhafiz commented 9 months ago

Seems reasonable. Happy to accept a patch for this.