From d87e7e1f1b13629489839354f7a6f787494fab41 Mon Sep 17 00:00:00 2001 From: MapleSign <347495867@qq.com> Date: Mon, 12 Feb 2018 18:07:28 +0800 Subject: [PATCH] Replace 'srand' with 'srandom' in order to match 'random'. --- list/list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/list/list.h b/list/list.h index 66b3f9f..7209033 100644 --- a/list/list.h +++ b/list/list.h @@ -108,7 +108,7 @@ int init_value(Node *p_node,const char *type,void * p_value){ } void rand_init(void){ - srand((unsigned)time(NULL)); + srandom((unsigned)time(NULL)); } unsigned long long getId(void){