Merge pull request 'Rename 'std.rand' to 'std.Random'' (#118) from fix_117 into main

Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/118
This commit is contained in:
Chris Boesch 2024-06-25 08:53:25 +00:00
commit 7705473447

View file

@ -199,7 +199,7 @@ pub fn build(b: *Build) !void {
// like for 'exno' but chooses a random exersise number.
print("work in progress: check a random exercise\n", .{});
var prng = std.rand.DefaultPrng.init(blk: {
var prng = std.Random.DefaultPrng.init(blk: {
var seed: u64 = undefined;
try std.posix.getrandom(std.mem.asBytes(&seed));
break :blk seed;