From f2cfb9b35973c992a0d2310d46016360185e459c Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 22 Jul 2018 10:30:50 +0200 Subject: [PATCH] add fourth parameter to cp_getvar() --- src/maths/misc/randnumb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maths/misc/randnumb.c b/src/maths/misc/randnumb.c index 008598273..5308a3b2b 100644 --- a/src/maths/misc/randnumb.c +++ b/src/maths/misc/randnumb.c @@ -295,7 +295,7 @@ com_sseed(wordlist *wl) int newseed; if (wl == NULL) { - if (!cp_getvar("rndseed", CP_NUM, &newseed)) { + if (!cp_getvar("rndseed", CP_NUM, &newseed, 0)) { newseed = getpid(); cp_vset("rndseed", CP_NUM, &newseed); }