Skip to content

Commit

Permalink
Simplify Go code (jedisct1#23)
Browse files Browse the repository at this point in the history
`a += b` instead of `a = a + b`
  • Loading branch information
muesli authored and jedisct1 committed Jul 19, 2019
1 parent fc96c07 commit 20b5235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genkeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (DeterministicRand) Read(p []byte) (n int, err error) {
for i := 0; i < reqLen; i++ {
deterministicRand.pool[i] = 0
}
deterministicRand.pos = deterministicRand.pos + reqLen
deterministicRand.pos += reqLen

return reqLen, nil
}
Expand Down

0 comments on commit 20b5235

Please sign in to comment.