From 31fc573df625b06a5f7b8b8e769e9f35cbfdaf91 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 31 Dec 2006 08:08:29 +0000 Subject: Release 10.37.0 git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@187 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- generator/pgmcrater.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'generator/pgmcrater.c') diff --git a/generator/pgmcrater.c b/generator/pgmcrater.c index 1833e604..ec592381 100644 --- a/generator/pgmcrater.c +++ b/generator/pgmcrater.c @@ -106,11 +106,10 @@ static int modulo(int t, int n) static void initseed() { - int i; + unsigned int i; - i = time(NULL) * 0xF37C; - srand(i); - for (i = 0; i < 7; i++) + srand(pm_randseed()); + for (i = 0; i < 7; ++i) V rand(); } -- cgit 1.4.1