We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98e1ecb commit 5f29501Copy full SHA for 5f29501
src/snmp/v3/security.cr
@@ -171,7 +171,7 @@ class SNMP::V3::Security
171
while password_index < 1048576
172
initial = password_index % password_length
173
rotated = password[initial..-1] + password[0, initial]
174
- buffer = rotated * (64 / rotated.size) + rotated[0, 64 % rotated.size]
+ buffer = rotated * (64 // rotated.size) + rotated[0, 64 % rotated.size]
175
password_index += 64
176
@digest << buffer
177
end
0 commit comments