From 66e0e65fd17d50d857ce5e4f3e8d56b3a795845c Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Sat, 27 Apr 2024 02:25:17 +0200 Subject: Minor updates for Zig 0.12.0 --- tool/znk.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tool/znk.zig') diff --git a/tool/znk.zig b/tool/znk.zig index af8f757..c50edae 100644 --- a/tool/znk.zig +++ b/tool/znk.zig @@ -438,7 +438,7 @@ fn PrefixKeyGenerator(comptime EntropyReaderType: type) type { fn generatePrivate(self: *Self) !void { var rr = RandomReader.init(&std.crypto.random); var brr = io.BufferedReader(1024 * 4096, @TypeOf(rr.reader())){ .unbuffered_reader = rr.reader() }; - while (!self.done.load(.SeqCst)) { + while (!self.done.load(.seq_cst)) { const gen_result = if (self.entropy) |entropy| nkeys.SeedKeyPair.generateWithCustomEntropy(self.role, entropy) else @@ -447,7 +447,7 @@ fn PrefixKeyGenerator(comptime EntropyReaderType: type) type { var public_key = kp.publicKeyText(); if (mem.startsWith(u8, public_key[1..], self.prefix)) { - if (self.done.swap(true, .SeqCst)) return; // another thread is already done + if (self.done.swap(true, .seq_cst)) return; // another thread is already done info("{s}", .{kp.seedText()}); info("{s}", .{public_key}); -- cgit v1.2.3