diff options
| author | e4m2 <git@e4m2.com> | 2024-02-08 15:21:35 +0100 |
|---|---|---|
| committer | e4m2 <git@e4m2.com> | 2024-02-08 15:21:35 +0100 |
| commit | 8d56e472c9fa97dc6eeae9866eed927910f7dfe2 (patch) | |
| tree | 76886b87aee7e499e51b9852701c4ebb75dd135d /lib/std/priority_dequeue.zig | |
| parent | 9af077d71eaf2c004d63405fc5c017e237cb9c6c (diff) | |
| download | zig-8d56e472c9fa97dc6eeae9866eed927910f7dfe2.tar.gz zig-8d56e472c9fa97dc6eeae9866eed927910f7dfe2.zip | |
Replace std.rand references with std.Random
Diffstat (limited to 'lib/std/priority_dequeue.zig')
| -rw-r--r-- | lib/std/priority_dequeue.zig | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/std/priority_dequeue.zig b/lib/std/priority_dequeue.zig index dc3981b65e..1b4a82aac3 100644 --- a/lib/std/priority_dequeue.zig +++ b/lib/std/priority_dequeue.zig @@ -866,7 +866,7 @@ test "std.PriorityDequeue: shrinkAndFree" { } test "std.PriorityDequeue: fuzz testing min" { - var prng = std.rand.DefaultPrng.init(0x12345678); + var prng = std.Random.DefaultPrng.init(0x12345678); const random = prng.random(); const test_case_count = 100; @@ -878,7 +878,7 @@ test "std.PriorityDequeue: fuzz testing min" { } } -fn fuzzTestMin(rng: std.rand.Random, comptime queue_size: usize) !void { +fn fuzzTestMin(rng: std.Random, comptime queue_size: usize) !void { const allocator = testing.allocator; const items = try generateRandomSlice(allocator, rng, queue_size); @@ -895,7 +895,7 @@ fn fuzzTestMin(rng: std.rand.Random, comptime queue_size: usize) !void { } test "std.PriorityDequeue: fuzz testing max" { - var prng = std.rand.DefaultPrng.init(0x87654321); + var prng = std.Random.DefaultPrng.init(0x87654321); const random = prng.random(); const test_case_count = 100; @@ -907,7 +907,7 @@ test "std.PriorityDequeue: fuzz testing max" { } } -fn fuzzTestMax(rng: std.rand.Random, queue_size: usize) !void { +fn fuzzTestMax(rng: std.Random, queue_size: usize) !void { const allocator = testing.allocator; const items = try generateRandomSlice(allocator, rng, queue_size); @@ -924,7 +924,7 @@ fn fuzzTestMax(rng: std.rand.Random, queue_size: usize) !void { } test "std.PriorityDequeue: fuzz testing min and max" { - var prng = std.rand.DefaultPrng.init(0x87654321); + var prng = std.Random.DefaultPrng.init(0x87654321); const random = prng.random(); const test_case_count = 100; @@ -936,7 +936,7 @@ test "std.PriorityDequeue: fuzz testing min and max" { } } -fn fuzzTestMinMax(rng: std.rand.Random, queue_size: usize) !void { +fn fuzzTestMinMax(rng: std.Random, queue_size: usize) !void { const allocator = testing.allocator; const items = try generateRandomSlice(allocator, rng, queue_size); @@ -963,7 +963,7 @@ fn fuzzTestMinMax(rng: std.rand.Random, queue_size: usize) !void { } } -fn generateRandomSlice(allocator: std.mem.Allocator, rng: std.rand.Random, size: usize) ![]u32 { +fn generateRandomSlice(allocator: std.mem.Allocator, rng: std.Random, size: usize) ![]u32 { var array = std.ArrayList(u32).init(allocator); try array.ensureTotalCapacity(size); |
