From 9bf0e3609a51ef8d6ed17053c78c7203084708c3 Mon Sep 17 00:00:00 2001 From: absc Date: Wed, 7 Aug 2024 01:23:30 +0200 Subject: [PATCH] Replace hard-coded value with the macro. --- dudeswave/src/dudeswave_auth.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dudeswave/src/dudeswave_auth.erl b/dudeswave/src/dudeswave_auth.erl index 13c336e..176d698 100644 --- a/dudeswave/src/dudeswave_auth.erl +++ b/dudeswave/src/dudeswave_auth.erl @@ -170,7 +170,7 @@ based on the application settings, the confirmation method may vary. Reason :: term(). new(User, Password, Email, Bucket) -> - Salt = rand:bytes(32), + Salt = rand:bytes(?RANDBYTES), Hash = crypto:hash(sha256, <>), Data = #{<<"email">> => Email},