When warning about forbidden pseudo random number generation functions,
authorDiego Biurrun <diego@biurrun.de>
Sat, 21 Mar 2009 16:16:04 +0000 (16:16 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sat, 21 Mar 2009 16:16:04 +0000 (16:16 +0000)
suggest the correct replacement functions.

Originally committed as revision 18114 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/internal.h

index 4191aa8e520c116326e99e53caca7559a5da08b7..a41a94636f10dde457d1877380416e8a08c06f2e 100644 (file)
@@ -224,11 +224,11 @@ if((y)<(x)){\
 #undef  time
 #define time time_is_forbidden_due_to_security_issues
 #undef  rand
 #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
 #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
 #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
 #undef  sprintf
 #define sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf
 #undef  strcat