mirror of
https://codeberg.org/ziglings/exercises.git
synced 2024-12-26 01:20: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.
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue