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.
1 parent 08b5280 commit 48fd46bCopy full SHA for 48fd46b
src/main/ruby/truffleruby/core/truffle/random_operations.rb
@@ -122,7 +122,7 @@ def self.obj_random_int(randomizer)
122
123
def self.obj_random_bytes(obj, len)
124
bytes = obj.bytes(len)
125
- raise TypeError, 'type must by String' unless Primitive.object_kind_of?(bytes, String)
+ raise TypeError, 'type must be String' unless Primitive.object_kind_of?(bytes, String)
126
bytesize = bytes.bytesize
127
unless bytesize == len
128
raise RangeError, "random data too #{bytesize < len ? 'short' : 'long'} #{bytesize}"
0 commit comments