Description: Fix FBTFS for time_t transition
 .
 xfireworks (1.3-14) unstable; urgency=high
 .
   [ Yukiharu YABUKI ]
   * Fix FBTFS for time_t transition
Author: Yukiharu YABUKI <yyabuki@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Bug-Debian: https://bugs.debian.org/1066624
Forwarded: not-needed
Last-Update: 2024-05-07

--- xfireworks-1.3.orig/XFireworks.c
+++ xfireworks-1.3/XFireworks.c
@@ -1,6 +1,7 @@
 #include "XFireworksP.h"
 
 #include <signal.h>
+#include <unistd.h>
 
 #include "etc.h"
 #include "Piece.h"
--- xfireworks-1.3.orig/etc.c
+++ xfireworks-1.3/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 * messag
 
 void InitializeRand()
 {
-  srand((unsigned)time(NULL));
+  /* srand((unsigned)time(NULL)); */
+  srand(0);
 }
 
 int Rand(int n)
