Skip to content

Commit

Permalink
Merge pull request #2 from Naist4869/main
Browse files Browse the repository at this point in the history
Update hexadecimal formatting for consistent length
  • Loading branch information
xqdoo00o authored Oct 25, 2023
2 parents db16e7c + a15b0d7 commit bae7d87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion murmur.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func getMurmur128String(input string, seed uint64) string {
d := newWithSeed(seed)
d.Write([]byte(input))
h1, h2 := d.Sum()
return fmt.Sprintf("%x%x", h1, h2)
return fmt.Sprintf("%016x%016x", h1, h2)
}

func newWithSeed(seed uint64) *digest {
Expand Down

0 comments on commit bae7d87

Please sign in to comment.