mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 09:30:45 +00:00
test_compaction_with_multiple_regions() has two calls to std::shuffle(), one using std::default_random_engine() has the PRNG, but the other, later on, using the std::random_device directly. This can cause failures due to entropy pool exhaustion. Fix by making the `random` variable refer to the PRNG, not the random_device, and adjust the first std::shuffle() call. This hides the random_device so it can't be used more than once. Message-Id: <20200527124247.2187364-1-avi@scylladb.com>