Move most of MWCryptRand into libs
authorKunal Mehta <legoktm@member.fsf.org>
Sun, 2 Oct 2016 07:04:17 +0000 (00:04 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 4 Oct 2016 05:50:36 +0000 (05:50 +0000)
commit5bd6de67e38aef2ac5aba4861537ca0a53cfa7c3
tree2642aa8916edc9dab9a1f2d0ccfc17163f493358
parent9300bc293378b215d8df2f44d7e00f00b0f739a1
Move most of MWCryptRand into libs

Dependency-inject the MW-specific parts of MWCryptRand via
MediaWikiServices into a generic CryptRand class that is in libs/.

Note that this removes the wfGetAllCallers() debug logging from
generate().

Change-Id: I9742735c266ee69fb247199d3c553cd2ad2a3987
autoload.php
includes/MediaWikiServices.php
includes/ServiceWiring.php
includes/libs/CryptRand.php [new file with mode: 0644]
includes/utils/MWCryptRand.php
tests/phpunit/includes/MediaWikiServicesTest.php