[asterisk-commits] dlee: branch dlee/stasis-demo r385965 - /team/dlee/stasis-demo/include/asterisk/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Apr 17 10:15:37 CDT 2013
Author: dlee
Date: Wed Apr 17 10:15:34 2013
New Revision: 385965
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=385965
Log:
Adding ast_random_double()
Modified:
team/dlee/stasis-demo/include/asterisk/utils.h
Modified: team/dlee/stasis-demo/include/asterisk/utils.h
URL: http://svnview.digium.com/svn/asterisk/team/dlee/stasis-demo/include/asterisk/utils.h?view=diff&rev=385965&r1=385964&r2=385965
==============================================================================
--- team/dlee/stasis-demo/include/asterisk/utils.h (original)
+++ team/dlee/stasis-demo/include/asterisk/utils.h Wed Apr 17 10:15:34 2013
@@ -458,6 +458,11 @@
long int ast_random(void);
+/*!
+ * \brief Returns a random number between 0.0 and 1.0, inclusive.
+ * \since 12
+ */
+#define ast_random_double() (((double)ast_random()) / RAND_MAX)
/*!
* \brief free() wrapper
More information about the asterisk-commits
mailing list