diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-05 17:44:44 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-05 17:44:44 +0000 |
commit | e0ba99b7f5b9f06dda7fe4baa8a7fb90e2ab40c8 (patch) | |
tree | 6334c0ffd529b865c510fbfb7a06b71e2c6d6ceb /formats/format_ogg_vorbis.c | |
parent | 54a140d030be645458cc82416501f0386e1d9e4b (diff) |
Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) rand() to threadsafe ast_random()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17627 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'formats/format_ogg_vorbis.c')
-rw-r--r-- | formats/format_ogg_vorbis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/formats/format_ogg_vorbis.c b/formats/format_ogg_vorbis.c index 133317689..a8274cb70 100644 --- a/formats/format_ogg_vorbis.c +++ b/formats/format_ogg_vorbis.c @@ -219,7 +219,7 @@ static int ogg_vorbis_rewrite(struct ast_filestream *s, vorbis_analysis_init(&tmp->vd, &tmp->vi); vorbis_block_init(&tmp->vd, &tmp->vb); - ogg_stream_init(&tmp->os, rand()); + ogg_stream_init(&tmp->os, ast_random()); vorbis_analysis_headerout(&tmp->vd, &tmp->vc, &header, &header_comm, &header_code); |