Skip to content

Commit

Permalink
Change rand.Read error code from 2 -> 5
Browse files Browse the repository at this point in the history
  • Loading branch information
HACKERALERT authored Oct 6, 2024
1 parent 9bb9a62 commit d5bd3c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ func work(din []byte, mode string) []byte {
hkdfSalt = make([]byte, 32)
nonce = make([]byte, 24)
if _, err := rand.Read(salt); err != nil {
return []byte{2}
return []byte{5}
}
if _, err := rand.Read(hkdfSalt); err != nil {
return []byte{2}
return []byte{5}
}
if _, err := rand.Read(nonce); err != nil {
return []byte{2}
return []byte{5}
}
dout = append(dout, rsEncode(rs5, []byte("v1.43"))...)
dout = append(dout, rsEncode(rs5, []byte("00000"))...)
Expand Down

0 comments on commit d5bd3c8

Please sign in to comment.