private function rand($num_rand = 32)
{
$_str_char = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
$_str_rnd = "";
while (strlen($_str_rnd) < $num_rand) {
$_str_rnd .= substr($_str_char, rand(0, strlen($_str_char)), 1);
}
return $_str_rnd;
}