Skip to content

Commit

Permalink
prettier readme
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-perugini committed May 12, 2020
1 parent 9e82489 commit dde4056
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ Used to spread a port unevenly in the bitmap.

```go
func hash(port uint16) (uint16, uint64) {
portModuled := (port / uint16(cfg.NumberOfBin)) % uint16(cfg.SizeBitmap)
index, bit := portModuled/uint16(cfg.NumberOfBits), uint64(portModuled)%uint64(cfg.NumberOfBits)
return index, bit
}
portModuled := (port / uint16(cfg.NumberOfBin)) % uint16(cfg.SizeBitmap)
index, bit := portModuled/uint16(cfg.NumberOfBits), uint64(portModuled)%uint64(cfg.NumberOfBits)
return index, bit
}
```

#### Entropy function
Expand Down

0 comments on commit dde4056

Please sign in to comment.