diff mbox series

[v3,15/23] linux-user: Remove srand call

Message ID 20190315032629.21234-16-richard.henderson@linaro.org
State Superseded
Headers show
Series Add qemu_getrandom and ARMv8.5-RNG etc | expand

Commit Message

Richard Henderson March 15, 2019, 3:26 a.m. UTC
We no longer use rand() within linux-user.

Cc: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

---
 linux-user/main.c | 2 --
 1 file changed, 2 deletions(-)

-- 
2.17.2

Comments

Philippe Mathieu-Daudé April 11, 2019, 9:51 a.m. UTC | #1
On 3/15/19 4:26 AM, Richard Henderson wrote:
> We no longer use rand() within linux-user.

> 

> Cc: Laurent Vivier <laurent@vivier.eu>

> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

> ---

>  linux-user/main.c | 2 --

>  1 file changed, 2 deletions(-)

> 

> diff --git a/linux-user/main.c b/linux-user/main.c

> index 8478306eef..80cb9fdfbe 100644

> --- a/linux-user/main.c

> +++ b/linux-user/main.c

> @@ -621,8 +621,6 @@ int main(int argc, char **argv, char **envp)

>  

>      cpu_model = NULL;

>  

> -    srand(time(NULL));

> -

>      qemu_add_opts(&qemu_trace_opts);

>  

>      optind = parse_args(argc, argv);

> 


Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
diff mbox series

Patch

diff --git a/linux-user/main.c b/linux-user/main.c
index 8478306eef..80cb9fdfbe 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -621,8 +621,6 @@  int main(int argc, char **argv, char **envp)
 
     cpu_model = NULL;
 
-    srand(time(NULL));
-
     qemu_add_opts(&qemu_trace_opts);
 
     optind = parse_args(argc, argv);