refactor: switch to use SecureRandom for random strings

This commit is contained in:
Adam Cooke
2024-03-04 17:33:25 +00:00
parent cae4b63599
commit ce30c070bd
6 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ class HTTPSender < BaseSender
super()
@endpoint = endpoint
@options = options
@log_id = Nifty::Utils::RandomString.generate(length: 8).upcase
@log_id = SecureRandom.alphanumeric(8).upcase
end
def send_message(message)