static function getRandomString($length, $high = false)
{
$factory = new RandomLib\Factory();
if ($high) {
/* Notice "High" imply mcrypt extension, unwanted for now
See https://github.com/ircmaxell/RandomLib/issues/57 */
$generator = $factory->getMediumStrengthGenerator();
} else {
$generator = $factory->getLowStrengthGenerator();
}
return $generator->generateString($length, RandomLib\Generator::CHAR_LOWER + RandomLib\Generator::CHAR_DIGITS);
}