summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-30 13:31:32 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-30 13:31:32 +0800
commita26fa543c55f28ada7f4617d18094061d8827397 (patch)
tree0bfa46d63f19c828f9fee2a002bc943509db3de2
parent200c31914f7abaeb08d08eac45473585bf6f453b (diff)
downloadpttbbs-a26fa543c55f28ada7f4617d18094061d8827397.tar
pttbbs-a26fa543c55f28ada7f4617d18094061d8827397.tar.gz
pttbbs-a26fa543c55f28ada7f4617d18094061d8827397.tar.bz2
pttbbs-a26fa543c55f28ada7f4617d18094061d8827397.tar.lz
pttbbs-a26fa543c55f28ada7f4617d18094061d8827397.tar.xz
pttbbs-a26fa543c55f28ada7f4617d18094061d8827397.tar.zst
pttbbs-a26fa543c55f28ada7f4617d18094061d8827397.zip
enlarge the random range
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2214 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/cal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index 7e24c2df..7096c7fa 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -60,7 +60,7 @@ int
vice(int money, char *item)
{
char buf[128];
- unsigned int viceserial = (currutmp->lastact % 1000000) * 100 + rand() % 100;
+ unsigned int viceserial = (currutmp->lastact % 10000) * 10000 + rand() % 10000;
demoney(-money);
setuserfile(buf, VICE_NEW);