diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2007-07-05 05:02:47 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2007-07-05 05:02:47 +0000 |
commit | 3299fb452360c568ac7c433a60244bad0fc68563 (patch) | |
tree | 23f20a31a7e8ecc727f25aca9efac31cf8f8177b | |
parent | 8448946e37983a55db92bdf46614de5f9c5ceab1 (diff) | |
download | ffmpeg-3299fb452360c568ac7c433a60244bad0fc68563.tar.gz |
Make error message more helpful and forbid random()
Originally committed as revision 9472 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavutil/internal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h index 4de9d58f34..8ee8c8d56b 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -238,8 +238,9 @@ if((y)<(x)){\ #define free please_use_av_free #define realloc please_use_av_realloc #define time time_is_forbidden_due_to_security_issues -#define rand rand_is_forbidden_due_to_state_trashing -#define srand srand_is_forbidden_due_to_state_trashing +#define rand rand_is_forbidden_due_to_state_trashing_use_av_random +#define srand srand_is_forbidden_due_to_state_trashing_use_av_init_random +#define random random_is_forbidden_due_to_state_trashing_use_av_random #define sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf #define strcat strcat_is_forbidden_due_to_security_issues_use_av_strlcat #define exit exit_is_forbidden |