From 1e987fb3df4f0e39da429d325e8eb3f66e78b5eb Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Wed, 13 Jun 2018 12:41:51 +0300 Subject: [PATCH] test/objectstore: fix random generator in allocator_bench. Signed-off-by: Igor Fedotov --- src/test/objectstore/Allocator_bench.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/objectstore/Allocator_bench.cc b/src/test/objectstore/Allocator_bench.cc index bdd64800bb776..470fd32fc2938 100755 --- a/src/test/objectstore/Allocator_bench.cc +++ b/src/test/objectstore/Allocator_bench.cc @@ -68,7 +68,7 @@ class AllocTracker public: AllocTracker(uint64_t capacity, uint64_t alloc_unit) - : u1(capacity, alloc_unit) + : u1(0, capacity) { assert(alloc_unit >= 0x100); assert(capacity <= (uint64_t(1) << 48)); // we use 5 octets (bytes 1 - 5) to store -- 2.39.5