mirror of
https://codeberg.org/ziglings/exercises.git
synced 2024-12-25 09:10:26 +00:00
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:
commit
7705473447
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