Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6942e2ac7f |
@@ -27,7 +27,7 @@ func main() {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
hasher := blake3.NewSized(*length)
|
||||
hasher := blake3.New()
|
||||
for {
|
||||
n, err := file.Read(buf[:])
|
||||
hasher.Write(buf[:n])
|
||||
@@ -37,7 +37,6 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
file.Close()
|
||||
hash := hasher.Sum([]byte{})
|
||||
fmt.Print(hex.EncodeToString(hash))
|
||||
fmt.Print(" ")
|
||||
|
||||
Reference in New Issue
Block a user