diff options
author | Julien Dessaux | 2024-11-22 09:27:23 +0100 |
---|---|---|
committer | Julien Dessaux | 2024-11-22 09:28:09 +0100 |
commit | 06468c1272035fcacf6d46a80b5738b55cffae38 (patch) | |
tree | 55ae36dc5c9d25cbf73da49c6bd6c887fe79605f /src/pointer.zig | |
parent | Removed useless testing boilerplate (diff) | |
download | zigfunge98-06468c1272035fcacf6d46a80b5738b55cffae38.tar.gz zigfunge98-06468c1272035fcacf6d46a80b5738b55cffae38.tar.bz2 zigfunge98-06468c1272035fcacf6d46a80b5738b55cffae38.zip |
Diffstat (limited to 'src/pointer.zig')
-rw-r--r-- | src/pointer.zig | 4 |
1 files changed, 2 insertions, 2 deletions
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; |