We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
import math
1 parent f2ab898 commit 8a1efb3Copy full SHA for 8a1efb3
vlib/crypto/sha3/sha3.v
@@ -8,8 +8,6 @@
8
// Last updated: August 2015
9
module sha3
10
11
-import math
12
-
13
// size_224 is the size, in bytes, of a sha3 sum224 checksum.
14
pub const size_224 = 28
15
// size_256 is the size, in bytes, of a sha3 sum256 checksum.
@@ -325,7 +323,7 @@ fn (mut d Digest) checksum_internal() ![]u8 {
325
323
mut remaining_ouput_len := d.output_len
326
324
327
for remaining_ouput_len > 0 {
328
- mut byte_len_this_round := math.min[int](remaining_ouput_len, d.rate)
+ mut byte_len_this_round := int_min(remaining_ouput_len, d.rate)
329
output_bytes << d.s.to_bytes()[..byte_len_this_round]
330
331
remaining_ouput_len -= byte_len_this_round
0 commit comments