_etsis_random_lib ()

Sets up random number and string generator global scope.

Return: (type)

Source file: app/functions/global-function.php

View source


Used by

Uses


Source

function _etsis_random_lib()
{
    $factory = new RandomLib\Factory;
    $generator = $factory->getGenerator(new SecurityLib\Strength(SecurityLib\Strength::MEDIUM));
    return $generator;
}

Changelog

  • Since: eduTrac SIS 6.3.0

User Contributed Notes

You must log in before being able to contribute a note.