polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

commit 43efbc60072c856b177715a44e923cdad554f3fa
parent e32ea507ab316ed87009652936945dc6f23db010
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 28 Sep 2018 22:54:26 -0700

random seed

Diffstat:
Msrc/main.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -22,8 +22,8 @@ int main(void) { int nsamples; - /* int seed = time(NULL); */ - srand(42); + int seed = time(NULL); + srand(seed); struct game game;