TIP: Click on subject to list as thread! ANSI
echo: public_domain
to: Paul Edwards
from: Rod Speed
date: 1995-05-03 11:04:24
subject: MSGID

ac> The serialno of this one should end in '5e' ... etc.
ac> It increments by one each time a new message is entered.
ac> I can post the new code if you like.  Have fun.

PE> To do that, you need to keep a file lying around.
PE> What is wrong with the current algorithm, which
PE> uses the number of seconds since 1970 or something,

That can get a bit messy if you choose to keep your system on
DST, or you have one of those accurate system time utes in use.

PE> or one more than that, if that's already been used?

Thats even messier than keeping the last used number,
you have to keep more than just the last used.

Guess it might be pretty robust to keep track of the last
used, and increment for the next, and if none exists, JUST
use that seconds since 1970 as the START of a sequence.

--- PQWK202
* Origin: afswlw rjfilepwq (3:711/934.2)
SEEN-BY: 690/718 711/809 934
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.