mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
6 lines
144 B
Go
6 lines
144 B
Go
package checksum
|
|
|
|
// Digit returns a Crc32-based checksum number between 0 and 9.
|
|
func Digit(data []byte) int {
|
|
return int(Crc32(data) % 10)
|
|
}
|