From 0fb898873caa14b0d43cc7d207d6c50f64992ddb Mon Sep 17 00:00:00 2001 From: Inex Code Date: Fri, 23 Aug 2024 11:46:48 +0300 Subject: [PATCH] fix: Use the cryptographically secure random number generator --- lib/utils/password_generator.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/password_generator.dart b/lib/utils/password_generator.dart index a940bb19..fa83535c 100644 --- a/lib/utils/password_generator.dart +++ b/lib/utils/password_generator.dart @@ -1,6 +1,6 @@ import 'dart:math'; -Random _rnd = Random(); +Random _rnd = Random.secure(); typedef StringGeneratorFunction = String Function();