github.com/adamar/terraform@v0.2.2-0.20141016210445-2e703afdad0e/helper/hashcode/hashcode.go (about) 1 package hashcode 2 3 import ( 4 "hash/crc32" 5 ) 6 7 // String hashes a string to a unique hashcode. 8 func String(s string) int { 9 return int(crc32.ChecksumIEEE([]byte(s))) 10 }