dutchcoders / gossdeep

MIT License
20 stars 7 forks source link

Compare funtion always gives output as 0 #2

Closed DarKnight24 closed 8 years ago

DarKnight24 commented 8 years ago

I wrote the following code

hash1, _ := ssdeep.HashString("Hey how are you")
hash2, _ := ssdeep.HashString("Hey how ae you")
log.Println(hash1)
log.Println(hash2)
log.Println(ssdeep.Compare(hash1, hash2))

The output is as follows

2016/05/02 18:54:09 3:PFVFUn:9vU
2016/05/02 18:54:09 3:PFdQn:9dQn
2016/05/02 18:54:09 0 <nil>

Why does compare function giving always 0? Have I missed something?

DarKnight24 commented 8 years ago

@nl5887 Am I performing any wrong step?