From 8b7c7fbb1a31082710589c2d227fb636e41b720c Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Sat, 13 Nov 2021 12:35:09 -0600 Subject: [PATCH] fix(cpu): account for change in stdlib API --- src/cpu.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu.zig b/src/cpu.zig index 2b27bb1..860253b 100644 --- a/src/cpu.zig +++ b/src/cpu.zig @@ -198,7 +198,7 @@ fn execute(cpu: *Cpu, display: *Display, mem: *[0x1000]u8, instr: Instruction) v cpu.pc = addr + cpu.v[0]; }, .RND => |args| { - cpu.v[args.x] = prng.random.int(u8) & args.kk; + cpu.v[args.x] = prng.random().int(u8) & args.kk; }, .DRW => |args| { const x = args.x;