/**
* uuid
*
* uuid() simply replicates MySQL's UUID function, which returns a 36
* character "random" hash (32 alphanumeric, 4 dashes).
* @return string
*/
function uuid(){
return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff),
mt_rand(0, 0x0fff) | 0x4000,
mt_rand(0, 0x3fff) | 0x8000,
mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff));
}
Tags
Abstract Android Apache apt-get Art bash C++ calendar CentOS circuit CSS electronics emulator Excel ffmpeg FTP HTC http ImageMagick images ip javascript jquery LED linux math memory mvc MySQL nodejs PHP phpize PHP RAD Sharpy plaintext PostgreSQL Python resize root rotate security socketio ubuntu ui Windows yumCategories
Meta
