Compare commits
No commits in common. "341054857ecc5555e4bdf3f1e74486e120dd3759" and "6942e2ac7ff6a93a293909d6a27be71ab5bd9a4a" have entirely different histories.
341054857e
...
6942e2ac7f
3
main.go
3
main.go
|
@ -27,7 +27,7 @@ func main() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
hasher := blake3.NewSized(*length)
|
hasher := blake3.New()
|
||||||
for {
|
for {
|
||||||
n, err := file.Read(buf[:])
|
n, err := file.Read(buf[:])
|
||||||
hasher.Write(buf[:n])
|
hasher.Write(buf[:n])
|
||||||
|
@ -37,7 +37,6 @@ func main() {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file.Close()
|
|
||||||
hash := hasher.Sum([]byte{})
|
hash := hasher.Sum([]byte{})
|
||||||
fmt.Print(hex.EncodeToString(hash))
|
fmt.Print(hex.EncodeToString(hash))
|
||||||
fmt.Print(" ")
|
fmt.Print(" ")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user