From b3caae6db4da4b604d5812d587b773674d72ccf3 Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Fri, 28 Jun 2024 22:49:48 -0400 Subject: Keep `-vet` happy --- core/encoding/uuid/generation.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/encoding') diff --git a/core/encoding/uuid/generation.odin b/core/encoding/uuid/generation.odin index cf29df378..7c9d4b80c 100644 --- a/core/encoding/uuid/generation.odin +++ b/core/encoding/uuid/generation.odin @@ -106,8 +106,8 @@ generate_v6 :: proc(clock_seq: Maybe(u16) = nil, node: Maybe([6]u8) = nil, times temporary: [2]u8 bytes_generated := rand.read(temporary[:]) assert(bytes_generated == 2, "RNG failed to generate 2 bytes for UUID v1.") - result[8] |= cast(u8)temporary[0] & 0x3F - result[9] = cast(u8)temporary[1] + result[8] |= temporary[0] & 0x3F + result[9] = temporary[1] } if realized_node, ok := node.?; ok { -- cgit v1.2.3