mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-17 02:35:10 +00:00
Random: CS adjustment
This commit is contained in:
parent
89cd8f09e7
commit
35f5c83d36
@ -53,7 +53,8 @@
|
|||||||
* @return String
|
* @return String
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function crypt_random_string($length) {
|
function crypt_random_string($length)
|
||||||
|
{
|
||||||
// PHP_OS & "\xDF\xDF\xDF" == strtoupper(substr(PHP_OS, 0, 3)), but a lot faster
|
// PHP_OS & "\xDF\xDF\xDF" == strtoupper(substr(PHP_OS, 0, 3)), but a lot faster
|
||||||
if ((PHP_OS & "\xDF\xDF\xDF") === 'WIN') {
|
if ((PHP_OS & "\xDF\xDF\xDF") === 'WIN') {
|
||||||
// method 1. prior to PHP 5.3 this would call rand() on windows hence the function_exists('class_alias') call.
|
// method 1. prior to PHP 5.3 this would call rand() on windows hence the function_exists('class_alias') call.
|
||||||
|
Loading…
Reference in New Issue
Block a user