From: Yukiharu YABUKI <yyabuki@debian.org>
Date: Sun, 14 Sep 2025 13:34:40 -0700
Subject: Fix FBTFS for time_t transition

  * Fix FBTFS for time_t transition

Bug-Debian: https://bugs.debian.org/1066624
Forwarded: not-needed
---
 XFireworks.c | 1 +
 etc.c        | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/XFireworks.c b/XFireworks.c
index 60a281f..d3f64c8 100644
--- a/XFireworks.c
+++ b/XFireworks.c
@@ -1,6 +1,7 @@
 #include "XFireworksP.h"
 
 #include <signal.h>
+#include <unistd.h>
 
 #include "etc.h"
 #include "Piece.h"
diff --git a/etc.c b/etc.c
index 34f7059..0c89066 100644
--- a/etc.c
+++ b/etc.c
@@ -1,4 +1,5 @@
 #include "etc.h"
+#include <time.h>
 
 int Error(char * funcname, char * message)
 {
@@ -8,7 +9,8 @@ int Error(char * funcname, char * message)
 
 void InitializeRand()
 {
-  srand((unsigned)time(NULL));
+  /* srand((unsigned)time(NULL)); */
+  srand(0);
 }
 
 int Rand(int n)
