Page MenuHomePhabricator

securepoll should use MWCryptRand not mt_rand() when creating a random temp directory
Closed, ResolvedPublic

Description

in line 195 of includes/crypt/Crypt.php:

$this->homeDir = $wgSecurePollTempDir . '/securepoll-' . sha1( mt_rand() . mt_rand() );

This should use MWCryptRand instead.