mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-05 23:34:35 +08:00
Make ff_random_get_seed public, rename to av_get_random_seed, export the header
Keep an old ff_ named function for binary compatibility until the next major bump. Originally committed as revision 23254 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -200,7 +200,7 @@ static char *make_digest_auth(HTTPAuthState *state, const char *username,
|
||||
|
||||
/* Generate a client nonce. */
|
||||
for (i = 0; i < 2; i++)
|
||||
cnonce_buf[i] = ff_random_get_seed();
|
||||
cnonce_buf[i] = av_get_random_seed();
|
||||
ff_data_to_hex(cnonce, (const uint8_t*) cnonce_buf, sizeof(cnonce_buf), 1);
|
||||
cnonce[2*sizeof(cnonce_buf)] = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user