diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-11 11:47:59 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2014-01-06 18:53:58 +0200 |
commit | 01d245ef4392152dbdc78a6ba4dfa0a6e8b08e6f (patch) | |
tree | 9e6b7bf0a2f303f6de689e380b98a9319c917201 /libavcodec/kgv1dec.c | |
parent | e61b8fa5605b16a02a2a0ea75afbfc31d7832bba (diff) | |
download | ffmpeg-01d245ef4392152dbdc78a6ba4dfa0a6e8b08e6f.tar.gz |
random_seed: Rewrite the generic clock() based seed code
The new code is faster and reuses the previous state in case of
multiple calls.
The previous code could easily end up in near-infinite loops,
if the difference between two clock() calls never was larger than
1.
This makes fate-parseutils finish in finite time when run in wine,
if CryptGenRandom isn't available (which e.g. isn't available if
targeting Windows RT/metro).
Patch originally by Michael Niedermayer but with some modifications
by Martin Storsjö.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/kgv1dec.c')
0 files changed, 0 insertions, 0 deletions