mirror of https://github.com/MISP/MISP
chg: [internal] Install random_compat by Composer
parent
74eccfe919
commit
fe7d0a462d
|
@ -7,10 +7,6 @@
|
||||||
[submodule "app/files/warninglists"]
|
[submodule "app/files/warninglists"]
|
||||||
path = app/files/warninglists
|
path = app/files/warninglists
|
||||||
url = https://github.com/MISP/misp-warninglists.git
|
url = https://github.com/MISP/misp-warninglists.git
|
||||||
[submodule "app/Lib/random_compat"]
|
|
||||||
path = app/Lib/random_compat
|
|
||||||
url = https://github.com/paragonie/random_compat
|
|
||||||
branch = master
|
|
||||||
[submodule "app/files/misp-galaxy"]
|
[submodule "app/files/misp-galaxy"]
|
||||||
path = app/files/misp-galaxy
|
path = app/files/misp-galaxy
|
||||||
url = https://github.com/MISP/misp-galaxy
|
url = https://github.com/MISP/misp-galaxy
|
||||||
|
|
|
@ -2,16 +2,6 @@
|
||||||
|
|
||||||
class RandomTool
|
class RandomTool
|
||||||
{
|
{
|
||||||
public function __construct()
|
|
||||||
{
|
|
||||||
// import compatibility library for PHP < 7.0
|
|
||||||
if (!function_exists('random_int')) {
|
|
||||||
if (file_exists(APP . 'Lib' . DS . 'random_compat' . DS . 'lib' . DS . 'random.php')) {
|
|
||||||
require_once(APP . 'Lib' . DS . 'random_compat' . DS . 'lib' . DS . 'random.php');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate a random string
|
* Generate a random string
|
||||||
*
|
*
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 088c04e2f261c33bed6ca5245491cfca69195ccf
|
|
|
@ -10,6 +10,7 @@
|
||||||
"ext-simplexml": "*",
|
"ext-simplexml": "*",
|
||||||
"ext-pcre": "*",
|
"ext-pcre": "*",
|
||||||
"cakephp/cakephp": "2.10.24",
|
"cakephp/cakephp": "2.10.24",
|
||||||
|
"paragonie/random_compat": ">=2",
|
||||||
"kamisama/cake-resque": "4.1.2",
|
"kamisama/cake-resque": "4.1.2",
|
||||||
"pear/crypt_gpg": "1.6.3",
|
"pear/crypt_gpg": "1.6.3",
|
||||||
"monolog/monolog": "1.24.0"
|
"monolog/monolog": "1.24.0"
|
||||||
|
|
Loading…
Reference in New Issue