raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=d084520660ba07707ef5db78140c18ac27c9879e

commit d084520660ba07707ef5db78140c18ac27c9879e
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sat Oct 3 21:00:43 2020 +0100

    renmove srand calls - eina ensures it does that now
---
 src/bin/e_fm_op.c         | 7 -------
 src/modules/shot/upload.c | 1 -
 2 files changed, 8 deletions(-)

diff --git a/src/bin/e_fm_op.c b/src/bin/e_fm_op.c
index cfd10bf5e..043642ed2 100644
--- a/src/bin/e_fm_op.c
+++ b/src/bin/e_fm_op.c
@@ -1849,13 +1849,6 @@ static void
 _e_fm_op_random_char(char *buf, size_t len)
 {
    size_t i;
-   static int sranded = 0;
-
-   if (!sranded)
-     {
-        srand((unsigned int)time(NULL));
-        sranded = 1;
-     }
 
    for (i = 0; i < len; i++)
      {
diff --git a/src/modules/shot/upload.c b/src/modules/shot/upload.c
index 865a3df17..13550e0c6 100644
--- a/src/modules/shot/upload.c
+++ b/src/modules/shot/upload.c
@@ -60,7 +60,6 @@ find_tmpfile(int quality, char *buf, size_t buf_size)
 
    // come up with a tmp file - not really that critical as its due for
    // sharing to the internet as a whole
-   srand(time(NULL));
    for (i = 0; i < 100; i++)
      {
         int fd, v = rand();

-- 


Reply via email to