From 4858497da9df56e18cd5b8d1f78f7e0feaf7c178 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 4 May 2024 02:19:08 +0800 Subject: [PATCH] reeeee --- zigs/src/main.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zigs/src/main.zig b/zigs/src/main.zig index 962a110..7843d32 100644 --- a/zigs/src/main.zig +++ b/zigs/src/main.zig @@ -195,7 +195,7 @@ const Namer = struct { self.val[b] = tmp2; const t = self.val[self.val[a] +% self.val[b]]; const rnd: u8 = @truncate((@as(u32, u) << 8 | @as(u32, t)) % 40); - s = (s + rnd + self.skl_id[i]) % 40; + s = (s +% rnd +% self.skl_id[i]) % 40; // swap i, s const tmp3 = self.skl_id[i]; self.skl_id[i] = self.skl_id[s]; @@ -204,7 +204,7 @@ const Namer = struct { } var last: i32 = -1; var j: u8 = 0; - var i: u8 = 0; + var i: u8 = 64; while (i < 128) { const p = @min( @min(self.name_base[i], self.name_base[i + 1]),