Fix for "Invalid key type: integer"
authorBen Davis <bendavis78@gmail.com>
Mon, 18 Jul 2016 19:26:07 +0000 (14:26 -0500)
committerReedy <reedy@wikimedia.org>
Sat, 6 Aug 2016 00:46:49 +0000 (01:46 +0100)
commit8d590fac31d5b37b892ea76852da029bb01cdbed
tree8415c51d0f5ed8ede8b8ca747d13a3aa694436d7
parent56f14e2b5d1b1a6fb90dce10c41ab199678dbd62
Fix for "Invalid key type: integer"

MWCryptHash::hmac requires a string, but mt_rand() returns an integer.
This issue resulted in an uncaught exception in a fresh installation
of mediawiki.

Imported from https://github.com/wikimedia/mediawiki/pull/55

Change-Id: Idccf5f230bfc2de30357b03c78c51cdad4839515
includes/utils/MWCryptRand.php