]> git.nega.tv - josh/narcissus/commit
Replace magic value in pool with random mixer
authorJoshua Simmons <josh@nega.tv>
Thu, 6 Oct 2022 20:59:29 +0000 (22:59 +0200)
committerJoshua Simmons <josh@nega.tv>
Thu, 6 Oct 2022 21:01:33 +0000 (23:01 +0200)
commit0bcb26de8e9cd16dc39a24183db107b82583053f
tree0b740aa8993005775ef275fc0f6135456c49d757
parentbbe49160973c782592401191969fb811c6dfe7d4
Replace magic value in pool with random mixer

Instead of using a 4 bit magic number, and consequently restricting the
size of the pool, instead mix handles with a per-pool random integer
based on the pool's base memory address.

The associated tests will perhaps be a bit flaky, so disable them by
default.
narcissus-core/src/pool.rs