function _makemeeting_keygen in Make Meeting Scheduler 7
Helper function to generate a keychain
Parameters
$length: Lengh of the keychain
Return value
string
1 call to _makemeeting_keygen()
- _makemeeting_generate_url in ./
makemeeting.module - Helper function to generate a unique keychain
File
- ./
makemeeting.module, line 1201 - Make Meeting module
Code
function _makemeeting_keygen($length) {
$pattern = "1234567890abcdefghijklmnopqrstuvwxyz";
$key = $pattern[rand(0, 35)];
for ($i = 1; $i < $length; $i++) {
$key .= $pattern[rand(0, 35)];
}
return $key;
}