summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/openticket.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/util/openticket.c b/util/openticket.c
index 33a8a54f..2b2fc884 100644
--- a/util/openticket.c
+++ b/util/openticket.c
@@ -1,4 +1,4 @@
-/* $Id: openticket.c,v 1.4 2002/06/06 21:34:14 in2 Exp $ */
+/* $Id: openticket.c,v 1.5 2002/06/10 13:12:08 lwms Exp $ */
/* 開獎的 utility */
#include "bbs.h"
@@ -67,11 +67,10 @@ int main()
fclose(fp);
}
-/*
- *srandom(33); // 固定一個 seed 但盡量要避免跟別人的seed同
- *
- *for( n = (now / (60*60*3)) - 62820; n >0; n--) random();
- */
+ srandom(33); // 固定一個 seed 但盡量要避免跟別人的seed同
+
+ for( n = (now / (60*60*3)) - 62820; n >0; n--) random();
+
/*
* 正確的random number generator的用法