Add support for using /dev/urandom to get random numbers on systems that support it.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@76296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2007-07-21 14:39:52 +00:00
parent ed604a6df8
commit 93b72115d1
5 changed files with 64 additions and 11 deletions

View File

@@ -393,11 +393,7 @@ int ast_pthread_create_detached_stack(pthread_t *thread, pthread_attr_t *attr, v
*/
char *ast_process_quotes_and_slashes(char *start, char find, char replace_with);
#ifdef linux
#define ast_random random
#else
long int ast_random(void);
#endif
/*!
* \brief free() wrapper