Skip to content
Snippets Groups Projects
Commit 0909ac4a authored by deniszgonjanin's avatar deniszgonjanin
Browse files
parents f15aaa4b 93364325
No related branches found
No related tags found
No related merge requests found
......@@ -353,5 +353,21 @@ function getServerIP() {
return $serverIP = 'http://'.$sIP.'/bigbluebutton/';
}
# function taken from http://www.php.net/manual/en/function.mt-rand.php
# modified by Sebastian Schneider
# credits go to www.mrnaz.com
function rand_string($len, $chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789')
{
$string = '';
for ($i = 0; $i < $len; $i++)
{
$pos = rand(0, strlen($chars)-1);
$string .= $chars{$pos};
}
return (sha1($string));
}
}
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment