Skip to content

Commit abdd5e7

Browse files
author
mahdi
committed
fix: increase randomness for invoice generation
1 parent 6c3a850 commit abdd5e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@
14381438
return;
14391439
}
14401440
$date = time();
1441-
$randomString = bin2hex(random_bytes(2));
1441+
$randomString = bin2hex(random_bytes(4));
14421442
$sql = "INSERT IGNORE INTO invoice (id_user, id_invoice, username, time_sell, Service_location, name_product, price_product, Volume, Service_time, Status) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
14431443
$Status = "active";
14441444
$usertest = "usertest";
@@ -1749,7 +1749,7 @@
17491749
}
17501750
$username_ac = $user['Processing_value_tow'];
17511751
$date = time();
1752-
$randomString = bin2hex(random_bytes(2));
1752+
$randomString = bin2hex(random_bytes(4));
17531753
if (empty($info_product['price_product']) || empty($info_product['price_product']))
17541754
return;
17551755
if ($datain == "confirmandgetserviceDiscount") {

0 commit comments

Comments
 (0)