diff --git a/makefile b/makefile index 446950a..76ba332 100644 --- a/makefile +++ b/makefile @@ -22,6 +22,9 @@ debug: mkdir -p $(LOCPATH)/debug gcc $(ALL) -o $(LOCPATH)/debug/$(NAME)_debug $(CFLAGS) $(LFLAGS) $(DEBFLAGS) $(LFLAGS_STATUS) +prof: + mkdir -p $(LOCPATH)/prof + gcc $(ALL) -o $(LOCPATH)/prof/$(NAME)_prof $(CFLAGS) $(LFLAGS) $(LFLAGS_STATUS) -pg asan: gcc $(ALL) -o $(LOCPATH)/debug/$(NAME)_debug_asan $(CFLAGS) $(LFLAGS) $(DEBFLAGS) -fsanitize=address clean: diff --git a/src/utils_curses.c b/src/utils_curses.c index ce31ce7..0a6d659 100644 --- a/src/utils_curses.c +++ b/src/utils_curses.c @@ -74,7 +74,6 @@ } break; case RANDOM: - srand(seed+row*row*row); row = rand() % maxR; if(seed > 28) { mvaddch(row,col,FULL); @@ -102,6 +101,7 @@ int color = 5; /*for(row=maxR; row>=0; row--){*/ + srand(seed+col*col*col); for (row=0; row