Skip to content

Commit

Permalink
update to Zig 2024.05-mach (helps hexops/mach#1276)
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
slimsag committed Oct 4, 2024
1 parent 1b59d65 commit fe1af54
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/benchmark.zig
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fn bench(algorithm: []const u8, Filter: anytype, size: usize, trials: usize) !vo
// Perform random matches.
var random_matches: u64 = 0;
var i: u64 = 0;
var rng = std.rand.DefaultPrng.init(0);
var rng = std.Random.DefaultPrng.init(0);
const random = rng.random();
timer.reset();
const randomMatchesTimeStart = timer.lap();
Expand Down
2 changes: 1 addition & 1 deletion src/binaryfusefilter.zig
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ fn binaryFuseTest(T: anytype, size: usize, size_in_bytes: usize) !void {
var random_matches: u64 = 0;
const trials = 10000000;
var i: u64 = 0;
var rng = std.rand.DefaultPrng.init(0);
var rng = std.Random.DefaultPrng.init(0);
const random = rng.random();
while (i < trials) : (i += 1) {
const random_key: u64 = random.uintAtMost(u64, std.math.maxInt(u64));
Expand Down
2 changes: 1 addition & 1 deletion src/fusefilter.zig
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ fn fuseTest(T: anytype, size: usize, size_in_bytes: usize) !void {
var random_matches: u64 = 0;
const trials = 10000000;
var i: u64 = 0;
var rng = std.rand.DefaultPrng.init(0);
var rng = std.Random.DefaultPrng.init(0);
const random = rng.random();
while (i < trials) : (i += 1) {
const random_key: u64 = random.uintAtMost(u64, std.math.maxInt(u64));
Expand Down
2 changes: 1 addition & 1 deletion src/xorfilter.zig
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ fn xorTest(T: anytype, size: usize, size_in_bytes: usize) !void {
var random_matches: u64 = 0;
const trials = 10000000;
var i: u64 = 0;
var rng = std.rand.DefaultPrng.init(0);
var rng = std.Random.DefaultPrng.init(0);
const random = rng.random();
while (i < trials) : (i += 1) {
const random_key: u64 = random.uintAtMost(u64, std.math.maxInt(u64));
Expand Down

0 comments on commit fe1af54

Please sign in to comment.