Skip to content

Commit

Permalink
fixup! driver: add --hash-seed
Browse files Browse the repository at this point in the history
  • Loading branch information
widlarizer committed Oct 2, 2024
1 parent 4ef0829 commit 566dcf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/driver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ int main(int argc, char **argv)
("X,trace", "enable tracing of core data structure changes. for debugging")
("M,randomize-pointers", "will slightly randomize allocated pointer addresses. for debugging")
("hash-seed", "mix up hashing values with <seed>, for extreme optimization and testing",
cxxopts::value<int>(), "<seed>")
cxxopts::value<uint64_t>(), "<seed>")
("A,abort", "will call abort() at the end of the script. for debugging")
("x,experimental", "do not print warnings for the experimental <feature>",
cxxopts::value<std::vector<std::string>>(), "<feature>")
Expand Down Expand Up @@ -419,8 +419,8 @@ int main(int argc, char **argv)
frontend_files = result["infile"].as<std::vector<std::string>>();
}
if (result.count("hash-seed")) {
int seed = result["hash-seed"].as<int>();
Hasher::set_fudge(seed);
int seed = result["hash-seed"].as<uint64_t>();
Hasher::set_fudge((Hasher::hash_t)seed);
}

if (log_errfile == NULL) {
Expand Down

0 comments on commit 566dcf1

Please sign in to comment.