mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 19:47:47 +03:00
Extends the direct access model to other collections
This commit is contained in:
committed by
Felipe Zimmerle
parent
ca24b6bb06
commit
f2d149fc5f
@@ -27,11 +27,14 @@ namespace utils {
|
||||
|
||||
|
||||
double random_number(const double from, const double to) {
|
||||
#if 0
|
||||
std::random_device rd;
|
||||
std::mt19937 mt(rd());
|
||||
return std::bind(
|
||||
std::uniform_real_distribution<>{from, to},
|
||||
std::default_random_engine{ mt() })();
|
||||
#endif
|
||||
return from+1;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user