From 81198fa2d09f07bb54ec28f41b20f275e88a3254 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Mon, 29 Jan 2024 15:13:53 +0000 Subject: update go-structr v0.2.0 => v0.3.0 to fix possible hash collision issues (#2586) --- vendor/codeberg.org/gruf/go-structr/hash_64.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 vendor/codeberg.org/gruf/go-structr/hash_64.go (limited to 'vendor/codeberg.org/gruf/go-structr/hash_64.go') diff --git a/vendor/codeberg.org/gruf/go-structr/hash_64.go b/vendor/codeberg.org/gruf/go-structr/hash_64.go new file mode 100644 index 000000000..5462c340e --- /dev/null +++ b/vendor/codeberg.org/gruf/go-structr/hash_64.go @@ -0,0 +1,14 @@ +//go:build !structr_32bit_hash && !structr_48bit_hash +// +build !structr_32bit_hash,!structr_48bit_hash + +package structr + +// Hash is the current compiler +// flag defined cache key hash +// checksum type. Here; uint64. +type Hash uint64 + +// uint64ToHash converts uint64 to currently Hash type. +func uint64ToHash(u uint64) Hash { + return Hash(u) +} -- cgit v1.2.3