jenkins-bot has submitted this change and it was merged.
Change subject: Tweaking the merchant reference
......................................................................
Tweaking the merchant reference
Hopefully, this will better avoid collisions
Change-Id: I299e646fea5b9cc67e5ab35120bc5eaf9a66bc1f
---
M globalcollect_gateway/globalcollect.adapter.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Awight: Looks good to me, approved
jenkins-bot: Verified
diff --git a/globalcollect_gateway/globalcollect.adapter.php
b/globalcollect_gateway/globalcollect.adapter.php
index bc98e4e..5c55cc1 100644
--- a/globalcollect_gateway/globalcollect.adapter.php
+++ b/globalcollect_gateway/globalcollect.adapter.php
@@ -2304,7 +2304,7 @@
$ctid = $this->staged_data['contribution_tracking_id'];
if ( $type === 'request' ) {
//append timestamp to ctid
- $ctid .= '.' . (time() % 100000); //least significant
five
+ $ctid .= '.' . (( microtime( true ) * 1000 ) % 100000);
//least significant five
} elseif ( $type === 'response' ) {
$ctid = explode( '.', $ctid );
$ctid = $ctid[0];
--
To view, visit https://gerrit.wikimedia.org/r/178708
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I299e646fea5b9cc67e5ab35120bc5eaf9a66bc1f
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Katie Horn <[email protected]>
Gerrit-Reviewer: Awight <[email protected]>
Gerrit-Reviewer: Ejegg <[email protected]>
Gerrit-Reviewer: Katie Horn <[email protected]>
Gerrit-Reviewer: Ssmith <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits