区别于mt_rand函数,利用/dev/urandom生成随机数是依靠设备本身生成的,函数如下:
function GetURandom($min = 0, $max = 0x7FFFFFFF){
$diff = $max - $min;
if ($dif[......]
区别于mt_rand函数,利用/dev/urandom生成随机数是依靠设备本身生成的,函数如下:
function GetURandom($min = 0, $max = 0x7FFFFFFF){
$diff = $max - $min;
if ($dif[......]