mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 18:52:24 -05:00
update go-structr v0.2.0 => v0.3.0 to fix possible hash collision issues (#2586)
This commit is contained in:
parent
aa8bbe6ad2
commit
81198fa2d0
17 changed files with 836 additions and 755 deletions
14
vendor/codeberg.org/gruf/go-structr/hash_64.go
generated
vendored
Normal file
14
vendor/codeberg.org/gruf/go-structr/hash_64.go
generated
vendored
Normal file
|
|
@ -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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue