dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
1887f0b
)
Merge "Remove wfRandomString() dependency in DatabaseBase"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Fri, 16 Sep 2016 00:44:35 +0000
(
00:44
+0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Fri, 16 Sep 2016 00:44:35 +0000
(
00:44
+0000)
includes/db/Database.php
patch
|
blob
|
history
diff --git
a/includes/db/Database.php
b/includes/db/Database.php
index
6cfff0e
..
5d1078a
100644
(file)
--- a/
includes/db/Database.php
+++ b/
includes/db/Database.php
@@
-2906,7
+2906,7
@@
abstract class DatabaseBase implements IDatabase, LoggerAwareInterface {
$this->mTrxAutomatic = ( $mode === self::TRANSACTION_INTERNAL );
$this->mTrxAutomaticAtomic = false;
$this->mTrxAtomicLevels = [];
- $this->mTrxShortId =
wfRandomString( 12
);
+ $this->mTrxShortId =
sprintf( '%06x', mt_rand( 0, 0xffffff )
);
$this->mTrxWriteDuration = 0.0;
$this->mTrxWriteQueryCount = 0;
$this->mTrxWriteAdjDuration = 0.0;