aboutsummaryrefslogtreecommitdiff
path: root/src/pointer.zig
diff options
context:
space:
mode:
authorJulien Dessaux2024-11-22 09:27:23 +0100
committerJulien Dessaux2024-11-22 09:28:09 +0100
commit06468c1272035fcacf6d46a80b5738b55cffae38 (patch)
tree55ae36dc5c9d25cbf73da49c6bd6c887fe79605f /src/pointer.zig
parentRemoved useless testing boilerplate (diff)
downloadzigfunge98-06468c1272035fcacf6d46a80b5738b55cffae38.tar.gz
zigfunge98-06468c1272035fcacf6d46a80b5738b55cffae38.tar.bz2
zigfunge98-06468c1272035fcacf6d46a80b5738b55cffae38.zip
zig 0.12 and 0.13 changesHEADmaster
Diffstat (limited to 'src/pointer.zig')
-rw-r--r--src/pointer.zig4
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;