mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Remove non-breaking spaces from code
This commit is contained in:
@@ -2,7 +2,7 @@ require 'securerandom'
|
||||
|
||||
def generate_password_1(length)
|
||||
chars = ('a'..'z').to_a + ('A'..'Z').to_a + ('0'..'9').to_a + ['!', '@', '#', '$', '%']
|
||||
# BAD: rand is not cryptographically secure
|
||||
# BAD: rand is not cryptographically secure
|
||||
password = (1..length).collect { chars[rand(chars.size)] }.join
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user