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:
martinhaas
2007-03-20 18:46:10 +00:00
parent 7c90ecee0f
commit f01f1ea59b
4 changed files with 83 additions and 60 deletions

View File

@@ -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);
}
?>