Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/scrambled_zipfian_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ namespace ycsbc {
class ScrambledZipfianGenerator : public Generator<uint64_t> {
public:
ScrambledZipfianGenerator(uint64_t min, uint64_t max, double zipfian_const) :
base_(min), num_items_(max - min + 1), generator_(0, 10000000000LL, zipfian_const) { }
base_(min), num_items_(max - min + 1), generator_(0, max - min + 1, zipfian_const) { }

ScrambledZipfianGenerator(uint64_t min, uint64_t max) :
base_(min), num_items_(max - min + 1),
generator_(0, 10000000000LL, ZipfianGenerator::kZipfianConst, kZetan) { }
generator_(0, max - min + 1, ZipfianGenerator::kZipfianConst, kZetan) { }

ScrambledZipfianGenerator(uint64_t num_items) :
ScrambledZipfianGenerator(0, num_items - 1) { }
Expand Down