Skip to content

Commit

Permalink
release fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
glaslos committed Dec 7, 2017
1 parent b4238c4 commit f0ae857
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Folders
_obj
_test
dist/

# Architecture specific extensions/prefixes
*.[568vq]
Expand All @@ -22,5 +23,3 @@ _testmain.go
*.exe
*.test
*.prof

ssdeep
1 change: 1 addition & 0 deletions app/ssdeep.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ func main() {
score := ssdeep.Distance(h1, h2)
fmt.Println(score)
}
println(h1.String())
}
2 changes: 1 addition & 1 deletion ssdeep.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (sdeep *SSDEEP) processByte(b byte) {
sdeep.blockHash1 = sumHash(b, sdeep.blockHash1)
sdeep.blockHash2 = sumHash(b, sdeep.blockHash2)
sdeep.rollHash(b)
rh := int(sdeep.rollingState.rollSum())
rh := int(sdeep.rollingState.h1 + sdeep.rollingState.h2 + sdeep.rollingState.h3)
if rh%sdeep.blockSize == (sdeep.blockSize - 1) {
if len(sdeep.hashString1) < spamSumLength-1 {
sdeep.hashString1 += string(b64[sdeep.blockHash1%64])
Expand Down

0 comments on commit f0ae857

Please sign in to comment.