Skip to content

Commit

Permalink
Update lib/faker/default/number.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Tomasz Jóźwik <[email protected]>
  • Loading branch information
gabrielbaldao and tjozwik authored Oct 20, 2020
1 parent 0d9f6cf commit 6fcde81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/faker/default/number.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def hexadecimal(legacy_digits = NOT_GIVEN, digits: 6)
# @example
# Faker::Number.binary(digits: 4) #=> "1001"
#
# @faker.version 1.0.0
# @faker.version next
def binary(digits: 4)
bin = ''
digits.times { bin += rand(2).to_s(2) }
Expand Down

0 comments on commit 6fcde81

Please sign in to comment.