mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-02 09:00:19 -05: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)))
|
|
}
|