X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fgen_sql_patches.php;h=4baf15fa48f0eb3f962e7c80bcfc7f402a279a1e;hp=a358c8d74a31730107d78eb09ce915688c3d742c;hb=8e74b561f46f5d90b7fe8c3280ec064ae85df1e9;hpb=de5910b8e5deb9285a7ac57c26ebd894f4e1afbf diff --git a/inc/gen_sql_patches.php b/inc/gen_sql_patches.php index a358c8d74a..4baf15fa48 100644 --- a/inc/gen_sql_patches.php +++ b/inc/gen_sql_patches.php @@ -77,11 +77,8 @@ if (getConfig('file_hash') == '') { $fileHash ); - // Count of chars to be taken from back of the string - $nums = mt_rand(40, 45); - // Generate secret key from a randomized string - $secretKey = substr(sha1(generatePassword(mt_rand(128, 256))), -$nums); + $secretKey = sha1(generateHash(mt_rand(128, 256))); // File hash was never created writeToFile($FQFN, $secretKey);