blob: e8c0abf2429056a5528d66163cc4540a0f7cad08 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
package objectid
// Zero returns the all-zero object ID for this algorithm.
func (algo Algorithm) Zero() ObjectID {
id, err := FromBytes(algo, make([]byte, algo.Size()))
if err != nil {
panic(err)
}
return id
}
|