commit 6c15480afe13749d060331bd714ec289d32f022d
parent 80ef0b79f121db0da447b08122c7d44a0854f809
Author: Florian Dold <florian.dold@gmail.com>
Date: Fri, 19 Feb 2016 02:18:51 +0100
larger transaction IDs
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/frontend/generate_taler_contract.php b/src/frontend/generate_taler_contract.php
@@ -35,7 +35,7 @@ $currency = $_SESSION['currency'];
// In production context, we might want to
// record this value somewhere together
// with the rest of the contract data.
-$transaction_id = rand(0, 1001);
+$transaction_id = rand(0, 2<<40);
// Human-readable description of this deal
$desc = "Donation to " . $receiver;