Index: bluemoon.c
--- bluemoon.c.orig
+++ bluemoon.c
@@ -386,7 +386,7 @@ int main(int argc, char *argv[]) {
 	if (argc == 2) {
 		srand(seed = atoi(argv[1]));
 	} else {
-		srand(seed = (int)time((long *)0));
+		srand(seed = (int)time((time_t *)0));
 	}
 	init_vars();
 
