Skip to content

Commit

Permalink
Prefer SecureRandom.uuid which is supported all the way back to Rub…
Browse files Browse the repository at this point in the history
…y v2.0.
  • Loading branch information
ioquatix committed May 13, 2019
1 parent e92de10 commit 218ee4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/multipartable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def self.secure_boundary
# "+" / "_" / "," / "-" / "." /
# "/" / ":" / "=" / "?"

"--#{SecureRandom.alphanumeric(60)}"
"--#{SecureRandom.uuid}"
end

def initialize(path, params, headers={}, boundary = Multipartable.secure_boundary)
Expand Down

0 comments on commit 218ee4e

Please sign in to comment.