From 756c7cbb120c73de72f8e8dedcba1facea5029bd Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Wed, 5 Apr 2006 17:44:44 +0000 Subject: Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) rand() to threadsafe ast_random() git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17627 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_musiconhold.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res/res_musiconhold.c') diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 4c0f93213..314c0762a 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -208,7 +208,7 @@ static int ast_moh_files_next(struct ast_channel *chan) } if (ast_test_flag(state->class, MOH_RANDOMIZE)) - state->pos = rand(); + state->pos = ast_random(); /* check to see if this file's format can be opened */ if (ast_fileexists(state->class->filearray[state->pos], NULL, NULL) != -1) -- cgit v1.2.3