Katie Horn has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/178708

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(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface 
refs/changes/08/178708/1

diff --git a/globalcollect_gateway/globalcollect.adapter.php 
b/globalcollect_gateway/globalcollect.adapter.php
index bc98e4e..a682167 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() % 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: newchange
Gerrit-Change-Id: I299e646fea5b9cc67e5ab35120bc5eaf9a66bc1f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Katie Horn <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to