diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-10 00:55:45 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-10 00:55:45 +0000 |
commit | 603f6f0ce31e225ff27afacb277afcc793211200 (patch) | |
tree | 66412a83f4893cdd194b97b489f2673d39cb9ef0 /include/asterisk/utils.h | |
parent | 44b25415b67046f5c3803e8e08e272d0f6233c70 (diff) |
Bug 5961 - new RAND() function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7920 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/utils.h')
-rw-r--r-- | include/asterisk/utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h index 8e1c5a9dd..8fd42445b 100644 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -235,4 +235,10 @@ char *ast_process_quotes_and_slashes(char *start, char find, char replace_with); int getloadavg(double *list, int nelem); #endif +#ifdef linux +#define ast_random random +#else +long int ast_random(void); +#endif + #endif /* _ASTERISK_UTILS_H */ |