From 53277ae61de8b081300cea5da70ae399e55926d3 Mon Sep 17 00:00:00 2001 From: Ivan Mahonin Date: May 02 2022 08:00:39 +0000 Subject: fix random --- diff --git a/icy.c b/icy.c index c21be20..27a1c7c 100644 --- a/icy.c +++ b/icy.c @@ -1,5 +1,6 @@ #include +#include #include #include #include @@ -34,6 +35,8 @@ double randomFloat() #include "filter.icy.inc.c" -int main(int argc, char **argv) - { return !icyGenerate(NULL, argc - 1, argv + 1); } +int main(int argc, char **argv) { + srand(time(NULL)); + return !icyGenerate(NULL, argc - 1, argv + 1); +}