mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-20 11:48:24 -06:00
11 lines
165 B
Go
11 lines
165 B
Go
package hashcode
|
|
|
|
import (
|
|
"hash/crc32"
|
|
)
|
|
|
|
// String hashes a string to a unique hashcode.
|
|
func String(s string) int {
|
|
return int(crc32.ChecksumIEEE([]byte(s)))
|
|
}
|