mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Prefer String#each_byte when using a block
This commit is contained in:
parent
8f99bfa26d
commit
2a20c17982
1 changed files with 1 additions and 1 deletions
|
@ -1414,7 +1414,7 @@ module MiniTest
|
|||
end
|
||||
suites = suites.sort_by do |suite|
|
||||
crc32 = 0xffffffff
|
||||
(suite.name + salt).bytes do |data|
|
||||
(suite.name + salt).each_byte do |data|
|
||||
crc32 = crc_tbl[(crc32 ^ data) & 0xff] ^ (crc32 >> 8)
|
||||
end
|
||||
crc32 ^ 0xffffffff
|
||||
|
|
Loading…
Reference in a new issue