From 06468c1272035fcacf6d46a80b5738b55cffae38 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Fri, 22 Nov 2024 09:27:23 +0100 Subject: zig 0.12 and 0.13 changes --- src/pointer.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pointer.zig') diff --git a/src/pointer.zig b/src/pointer.zig index ce170af..fe6a526 100644 --- a/src/pointer.zig +++ b/src/pointer.zig @@ -44,7 +44,7 @@ pub const Pointer = struct { p.step(false); }, 'j' => { - var n = p.ss.toss.pop(); + const n = p.ss.toss.pop(); var j: usize = 0; if (n > 0) { while (j < n) : (j += 1) { @@ -379,7 +379,7 @@ pub const Pointer = struct { p.lastCharWasSpace = false; // Initializing the random number generator var seed: u64 = undefined; - try std.os.getrandom(std.mem.asBytes(&seed)); + try std.posix.getrandom(std.mem.asBytes(&seed)); p.rand = std.rand.DefaultPrng.init(seed); p.timestamp = timestamp; return p; -- cgit v1.2.3