Skip to content

Commit

Permalink
type.EmptyHash() code improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
yrashk committed May 22, 2014
1 parent 691fd28 commit 395cc32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/basic.go
Expand Up @@ -8,7 +8,7 @@ import (
type Hash []byte

func EmptyHash() Hash {
return []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
return make([]byte, 32)
}

func (h Hash) String() string {
Expand Down

0 comments on commit 395cc32

Please sign in to comment.