Commit 5eee209f authored by diego's avatar diego

When warning about forbidden pseudo random number generation functions,

suggest the correct replacement functions.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18114 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5b721056
......@@ -224,11 +224,11 @@ if((y)<(x)){\
#undef time
#define time time_is_forbidden_due_to_security_issues
#undef rand
#define rand rand_is_forbidden_due_to_state_trashing_use_av_random
#define rand rand_is_forbidden_due_to_state_trashing_use_av_lfg_get
#undef srand
#define srand srand_is_forbidden_due_to_state_trashing_use_av_random_init
#define srand srand_is_forbidden_due_to_state_trashing_use_av_lfg_init
#undef random
#define random random_is_forbidden_due_to_state_trashing_use_av_random
#define random random_is_forbidden_due_to_state_trashing_use_av_lfg_get
#undef sprintf
#define sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf
#undef strcat
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment