mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-01-13 10:16:30 +00:00
Rename 'std.rand' to 'std.Random'
This commit is contained in:
parent
94fe012c77
commit
5bf56f03b0
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ pub fn build(b: *Build) !void {
|
||||||
// like for 'exno' but chooses a random exersise number.
|
// like for 'exno' but chooses a random exersise number.
|
||||||
print("work in progress: check a random exercise\n", .{});
|
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;
|
var seed: u64 = undefined;
|
||||||
try std.posix.getrandom(std.mem.asBytes(&seed));
|
try std.posix.getrandom(std.mem.asBytes(&seed));
|
||||||
break :blk seed;
|
break :blk seed;
|
||||||
|
|
Loading…
Reference in a new issue