[asterisk-commits] file: trunk r89582 - /trunk/main/utils.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Nov 26 10:20:04 CST 2007


Author: file
Date: Mon Nov 26 10:20:04 2007
New Revision: 89582

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89582
Log:
Revert change for 11348 until it can be looked at even more.

Modified:
    trunk/main/utils.c

Modified: trunk/main/utils.c
URL: http://svn.digium.com/view/asterisk/trunk/main/utils.c?view=diff&rev=89582&r1=89581&r2=89582
==============================================================================
--- trunk/main/utils.c (original)
+++ trunk/main/utils.c Mon Nov 26 10:20:04 2007
@@ -1140,7 +1140,7 @@
 		int read_res = read(dev_urandom_fd, &res, sizeof(res));
 		if (read_res > 0) {
 			res = res < 0 ? ~res : res;
-			return res % ((long)RAND_MAX + 1);
+			return res;
 		}
 	}
 #endif




More information about the asterisk-commits mailing list