diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2016-04-26 14:17:26 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2016-04-26 14:17:26 +0000 |
commit | b35771a0b75998edb086fb147ca36ac8a39c21de (patch) | |
tree | 25bddf0cc7b0fddb549ef2d52a96c15fc0e1ca9a | |
parent | 30e4e36d7e8d0371d18c8da632bd26658859fbb4 (diff) | |
download | netpbm-mirror-b35771a0b75998edb086fb147ca36ac8a39c21de.tar.gz netpbm-mirror-b35771a0b75998edb086fb147ca36ac8a39c21de.tar.xz netpbm-mirror-b35771a0b75998edb086fb147ca36ac8a39c21de.zip |
Use pm_randseed instead of srand
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2719 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | editor/pamrubber.c | 2 | ||||
-rw-r--r-- | editor/specialty/pampaintspill.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/editor/pamrubber.c b/editor/pamrubber.c index 4378c340..e7abd789 100644 --- a/editor/pamrubber.c +++ b/editor/pamrubber.c @@ -1405,7 +1405,7 @@ main(int argc, const char ** const argv) { setGlobalCP(cmdline); - srand(cmdline.randseedSpec ? cmdline.randseed : time(NULL)); + srand(cmdline.randseedSpec ? cmdline.randseed : pm_randseed()); ifP = pm_openr(cmdline.fileName); diff --git a/editor/specialty/pampaintspill.c b/editor/specialty/pampaintspill.c index 745c9b68..eb1888f7 100644 --- a/editor/specialty/pampaintspill.c +++ b/editor/specialty/pampaintspill.c @@ -253,7 +253,7 @@ locatePaintSources(struct pam * const pamP, if (downsample > 0 && downsample < paintSources.size) { unsigned int i; - srand(time(NULL)); + srand(pm_randseed()); for (i = 0; i < downsample; ++i) { unsigned int const swapIdx = |