diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-27 18:04:43 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-27 18:04:43 +0000 |
commit | 34087ec576d4a7446ecd9fd0ed97430b57c4004b (patch) | |
tree | cb4e07429ebca9e585a32b457c2f2a3ef9ac2173 /main | |
parent | 4bc54633d7b407f3154a8b8dd5939b8c3f674ea9 (diff) |
Use ast_random() instead of rand() to ensure we use the best RNG available.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@184726 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c index 77362cb87..b5cc844bd 100644 --- a/main/manager.c +++ b/main/manager.c @@ -3803,7 +3803,7 @@ static struct ast_str *generic_http_callback(enum output_format format, * properties of the rand() function (and the constantcy of s), that * won't happen twice in a row. */ - while ((session->managerid = rand() ^ (unsigned long) session) == 0); + while ((session->managerid = ast_random() ^ (unsigned long) session) == 0); session->last_ev = grab_last(); AST_LIST_HEAD_INIT_NOLOCK(&session->datastores); AST_LIST_LOCK(&sessions); |