Remove non-breaking spaces from code

This commit is contained in:
Arthur Baars
2025-09-05 09:41:15 +02:00
parent 2100dc1288
commit 5d3ec35e29
26 changed files with 43 additions and 43 deletions

View File

@@ -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