mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user