random-device for one-time at-order (define <randdev> at set ...), better WS300-Support
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@32 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -38,4 +38,14 @@ function bft($windspeed) # wind speed in Beaufort
|
||||
}
|
||||
|
||||
|
||||
function randdefine()
|
||||
{
|
||||
$rand1 = rand(500,20000);
|
||||
$rand2 = rand(500,20000);
|
||||
$rq = md5($rand1.$rand2);
|
||||
$randdefine=substr($rq,0,5);
|
||||
return ($randdefine);
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user