Ejemplo n.º 1
0
 /**
  * Generate pseudo-uuid key for filename
  *
  * @return string
  */
 private static function genFileKey()
 {
     $octets = array_map(function () {
         $num = floor((1 + Client::randomFloat()) * 0x10000);
         return substr(dechex($num), 1);
     }, range(0, 4));
     return implode("", $octets);
 }