Skip to content

Commit 2b10ed5

Browse files
committed
Fixed getopt and fixed see for reproducidability
1 parent 24621ca commit 2b10ed5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static inline Params parse_argv(int argc, char** argv)
6464
};
6565

6666
int c;
67-
while ((c = getopt_long(argc, argv, "n:p:t:qc h", long_opts, nullptr)) != -1) {
67+
while ((c = getopt_long(argc, argv, "n:p:t:c:h", long_opts, nullptr)) != -1) {
6868
switch (c) {
6969
case 'n': opt.n_records = std::strtoull(optarg, nullptr, 10); break;
7070
case 'p':
@@ -102,7 +102,7 @@ static inline Params parse_argv(int argc, char** argv)
102102
/* 5. Data generation & release */
103103
/*---------------------------------------------------------------------------*/
104104
static inline Record* alloc_random_records(std::size_t n, std::uint32_t payload_max,
105-
unsigned int seed = static_cast<unsigned int>(time(nullptr)))
105+
unsigned int seed = 42)
106106
{
107107
std::mt19937 rng(seed);
108108
std::uniform_int_distribution<> key_gen(0, INT32_MAX);

0 commit comments

Comments
 (0)