From 2d998db45226ca7efd39ec6e04b9891ccf129d4f Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 16 Aug 2008 17:52:30 +0000 Subject: General: Upgraded Verification ID generation Verification IDs in Central and Update can now be between 0 and 2147483647. Closes #37 --- update/library/trunk/instadisc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'update/library') diff --git a/update/library/trunk/instadisc.php b/update/library/trunk/instadisc.php index bfc1101..8a17da0 100644 --- a/update/library/trunk/instadisc.php +++ b/update/library/trunk/instadisc.php @@ -18,7 +18,7 @@ function instaDisc_sendItem($id, $title, $author, $url, $semantics) { global $idusUsername, $idusPassword, $idusCentralServer, $idusSubscriptionURI; - $verID = rand(1,65536); + $verID = rand(1,2147483647); $client = new xmlrpc_client($idusCentralServer[$id]); $msg = new xmlrpcmsg("InstaDisc.sendFromUpdate", array( new xmlrpcval($idusUsername[$id], 'string'), @@ -40,7 +40,7 @@ function instaDisc_sendEncrypted($id, $title, $author, $url, $semantics) $encID = 0; while ($encID == 0) { - $encID = rand(1,65536); + $encID = rand(1,2147483647); } $cipher = "rijndael-128"; @@ -70,7 +70,7 @@ function instaDisc_sendEncrypted($id, $title, $author, $url, $semantics) mcrypt_module_close($td); - $verID = rand(1,65536); + $verID = rand(1,2147483647); $client = new xmlrpc_client($idusCentralServer[$id]); $msg = new xmlrpcmsg("InstaDisc.sendFromUpdate", array( new xmlrpcval($idusUsername[$id], 'string'), -- cgit 1.4.1