Move PasswordUtil::secureRandomNumber() into CryptoUtil
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 16 Aug 2017 11:38:37 +0000 (13:38 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 16 Aug 2017 11:40:11 +0000 (13:40 +0200)
commit88eedda0ba0c65b329254d453fe7d0a35c07bb8a
treeef823779137cfb049f602c74d09693587d5035ea
parentfe864552568736f174f3d8aced9e9bf0b6fa3763
Move PasswordUtil::secureRandomNumber() into CryptoUtil

- Use random_int if available

Fixes #2379
Closes #2381
wcfsetup/install/files/lib/util/CryptoUtil.class.php
wcfsetup/install/files/lib/util/PasswordUtil.class.php