|
|
@@ -423,7 +423,7 @@ class WithdrawForm extends Model {
|
|
|
$hash = '';
|
|
|
$max = strlen($seed) - 1;
|
|
|
for ($i = 0; $i < $length; $i++) {
|
|
|
- $hash .= $seed{mt_rand(0, $max)};
|
|
|
+ $hash .= $seed[mt_rand(0, $max)];
|
|
|
}
|
|
|
return $hash;
|
|
|
}
|
|
|
@@ -440,7 +440,7 @@ class WithdrawForm extends Model {
|
|
|
$hash = '';
|
|
|
$max = strlen($seed) - 1;
|
|
|
for ($i = 0; $i < $length; $i++) {
|
|
|
- $hash .= $seed{mt_rand(0, $max)};
|
|
|
+ $hash .= $seed[mt_rand(0, $max)];
|
|
|
}
|
|
|
return $hash;
|
|
|
}
|