summaryrefslogtreecommitdiff
path: root/src/examples/evas
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-10-03 20:46:50 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-10-03 20:46:50 +0100
commit42c123d1d7b4b5fa1251b3ae7768912f480d36a3 (patch)
tree50d320ae44fde2d6d547cf4e74a547c7ae8c33b0 /src/examples/evas
parentde5ac3287002f21fb13f97ba635f6962664e3ebc (diff)
singularize srand in eina_init - only once in one place
simplify down to having a single srand() in eina_init and use urandom if it works and is there - if not, time(NULL) will do. it's the best we can...
Diffstat (limited to 'src/examples/evas')
-rw-r--r--src/examples/evas/evas-box.c2
-rw-r--r--src/examples/evas/evas-images2.c2
-rw-r--r--src/examples/evas/evas-smart-interface.c2
-rw-r--r--src/examples/evas/evas-smart-object.c2
4 files changed, 0 insertions, 8 deletions
diff --git a/src/examples/evas/evas-box.c b/src/examples/evas/evas-box.c
index 255b11609f..d42456f984 100644
--- a/src/examples/evas/evas-box.c
+++ b/src/examples/evas/evas-box.c
@@ -317,8 +317,6 @@ main(void)
317 Evas_Object *last, *o; 317 Evas_Object *last, *o;
318 int i; 318 int i;
319 319
320 srand(time(NULL));
321
322 if (!ecore_evas_init()) 320 if (!ecore_evas_init())
323 return EXIT_FAILURE; 321 return EXIT_FAILURE;
324 322
diff --git a/src/examples/evas/evas-images2.c b/src/examples/evas/evas-images2.c
index 74ac3f0e8d..30477ba02d 100644
--- a/src/examples/evas/evas-images2.c
+++ b/src/examples/evas/evas-images2.c
@@ -226,8 +226,6 @@ main(void)
226 unsigned int pixels[(WIDTH / 4) * (HEIGHT / 4)]; 226 unsigned int pixels[(WIDTH / 4) * (HEIGHT / 4)];
227 Evas_Textblock_Style *st; 227 Evas_Textblock_Style *st;
228 228
229 srand(time(NULL));
230
231 if (!ecore_evas_init()) 229 if (!ecore_evas_init())
232 return EXIT_FAILURE; 230 return EXIT_FAILURE;
233 231
diff --git a/src/examples/evas/evas-smart-interface.c b/src/examples/evas/evas-smart-interface.c
index 2d42952598..f3019e4110 100644
--- a/src/examples/evas/evas-smart-interface.c
+++ b/src/examples/evas/evas-smart-interface.c
@@ -678,8 +678,6 @@ main(void)
678 unsigned int count; 678 unsigned int count;
679 Eina_Bool ret; 679 Eina_Bool ret;
680 680
681 srand(time(NULL));
682
683 if (!ecore_evas_init()) 681 if (!ecore_evas_init())
684 return EXIT_FAILURE; 682 return EXIT_FAILURE;
685 683
diff --git a/src/examples/evas/evas-smart-object.c b/src/examples/evas/evas-smart-object.c
index c0988e5029..7809f4f4b6 100644
--- a/src/examples/evas/evas-smart-object.c
+++ b/src/examples/evas/evas-smart-object.c
@@ -648,8 +648,6 @@ main(void)
648 unsigned int count; 648 unsigned int count;
649 Eina_Bool ret; 649 Eina_Bool ret;
650 650
651 srand(time(NULL));
652
653 if (!ecore_evas_init()) 651 if (!ecore_evas_init())
654 return EXIT_FAILURE; 652 return EXIT_FAILURE;
655 653