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},