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;