mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Add deterministic_permutation() which produces a reproducible pseudo random permutation of [0, n) using a Fisher-Yates shuffle seeded by DefaultHasher. This is used by the random read micro benchmarks to generate a fixed access pattern that is identical across runs. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>