Skip to content

Commit

Permalink
Encoding Hex fix
Browse files Browse the repository at this point in the history
Signed-off-by: Nayanacdac <nayana.n@cdac.in>
  • Loading branch information
nayanacdac committed Sep 24, 2024
1 parent 3e77c41 commit 0e92a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion producer/generate_auth_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func aucSQN(opc, k, auts, rand []byte) ([]byte, []byte) {
func strictHex(s string, n int) string {
l := len(s)
if l < n {
return fmt.Sprintln(strings.Repeat("0", n-l) + s)
return fmt.Sprint(strings.Repeat("0", n-l) + s)
} else {
return s[l-n : l]
}
Expand Down

0 comments on commit 0e92a3d

Please sign in to comment.