Rename 'std.rand' to 'std.Random'

This commit is contained in:
Chris Boesch 2024-06-25 10:45:54 +02:00
parent 94fe012c77
commit 5bf56f03b0
No known key found for this signature in database
GPG key ID: 8712DF4D3E364668

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;