mirror of https://github.com/MISP/MISP
Revert "chg: [internal] Install random_compat by Composer"
This reverts commit fe7d0a46
pull/7352/head
parent
658f30b7b1
commit
d3b1eb51fb
|
@ -7,6 +7,10 @@
|
||||||
[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,6 +2,16 @@
|
||||||
|
|
||||||
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
|
||||||
*
|
*
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 088c04e2f261c33bed6ca5245491cfca69195ccf
|
|
@ -10,7 +10,6 @@
|
||||||
"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