we are using Laravel Framework 5.7.15 with PHP version: 7.2.14-1
and we use below code to generate temporary password then hash it in the database.
In around 80 times all passwords hash matched the string however there were around 3 not matched strings , I searched for a cause and nothing appeared...
$input['tmp_password'] = substr(str_shuffle("0123456789"), 0, 4); // Random four digits
$input['password'] = Hash::make($input['tmp_password']);