From 79eaaa68dd5380d3572ed48e32e556531bfd49eb Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 16 Jul 2026 18:28:52 +0200 Subject: Use SecureRandom instead of the hand rolled implementation --- lib/authentication.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/authentication.rb b/lib/authentication.rb index a936589..4a3ad46 100644 --- a/lib/authentication.rb +++ b/lib/authentication.rb @@ -31,7 +31,7 @@ module Authentication end def make_token - secure_digest(Time.now, (1..10).map{ rand.to_s }) + SecureRandom.hex(20) end end # class methods @@ -100,4 +100,4 @@ module Authentication end end # instance methods end -end \ No newline at end of file +end -- cgit v1.3