diff options
author | lwms <lwms@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-10 21:12:08 +0800 |
---|---|---|
committer | lwms <lwms@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-10 21:12:08 +0800 |
commit | 6b3fd7c2e725efd03250e0155bc47133afc2402e (patch) | |
tree | 4ac4c6b1544ef212040ea24de0bbe13e556150d7 /util | |
parent | b3b99a3f3c2c86d1ac2ffdc9f7af338375d76d69 (diff) | |
download | pttbbs-6b3fd7c2e725efd03250e0155bc47133afc2402e.tar pttbbs-6b3fd7c2e725efd03250e0155bc47133afc2402e.tar.gz pttbbs-6b3fd7c2e725efd03250e0155bc47133afc2402e.tar.bz2 pttbbs-6b3fd7c2e725efd03250e0155bc47133afc2402e.tar.lz pttbbs-6b3fd7c2e725efd03250e0155bc47133afc2402e.tar.xz pttbbs-6b3fd7c2e725efd03250e0155bc47133afc2402e.tar.zst pttbbs-6b3fd7c2e725efd03250e0155bc47133afc2402e.zip |
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@317 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r-- | util/openticket.c | 11 |
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的用法 |