summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authoritsnoctural <itsnoctural@noreply.codeberg.org>2026-01-09 00:19:24 +0200
committeritsnoctural <itsnoctural@noreply.codeberg.org>2026-01-09 00:19:24 +0200
commit551008ac19d262dd30ddaa0c8f39776b419682d8 (patch)
treee1dd36825ce57798c85bd11e2878783a88462916 /build.zig
parent335aaafcff2bfa1337cb73b39e6ffd40d691be04 (diff)
fix: use new randomness api
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.zig b/build.zig
index c2958e3..d253b95 100644
--- a/build.zig
+++ b/build.zig
@@ -206,7 +206,7 @@ pub fn build(b: *Build) !void {
var prng = std.Random.DefaultPrng.init(blk: {
var seed: u64 = undefined;
- try std.posix.getrandom(std.mem.asBytes(&seed));
+ io.random(std.mem.asBytes(&seed));
break :blk seed;
});
const rnd = prng.random();
@@ -1287,7 +1287,7 @@ const exercises = [_]Exercise{
\\Max difference (new fn): 0.014
,
},
- .{ .main_file = "110_quiz9.zig", .output =
+ .{ .main_file = "110_quiz9.zig", .output =
\\Toggle pins with XOR on PORTB
\\-----------------------------
\\ 1100 // (initial state of PORTB)