Path: utzoo!utstat!helios.physics.utoronto.ca!jarvis.csri.toronto.edu!rutgers!iuvax!mailrus!b-tech!zeeff From: zeeff@b-tech.ann-arbor.mi.us (Jon Zeeff) Newsgroups: news.software.b Subject: Re: Why are C news message-IDs so non-minimalist? Message-ID: Date: 4 Dec 89 03:59:17 GMT References: <1989Nov30.162609.9435@phri.nyu.edu> <5:CS3_@splut.conmicro.com> <1989Dec3.073310.18501@utzoo.uucp> Reply-To: zeeff@b-tech.ann-arbor.mi.us (Jon Zeeff) Organization: Branch Technology, Ann Arbor, MI Lines: 43 Here it is if anyone wants a copy. I believe that there was something similar posted awhile back but I didn't have a copy. --- cut here --- mkid.c ---- /* Put this in /usr/lib/newsbin/inject and change anne.jones to use it to make a message id. */ /* string of some valid message id characters */ char string[] = "!#$%^&*_+|-=~`{}'/?ABCDFGHJKLMNPQRSTVWXYZ1234567890"; #define size (sizeof string - 1) main() { long time(); /* subtract off the time I wrote this and assume that pids never get reused in 60 seconds. */ print_num((time((long *)0) - 627672773) / 60); print_num((long)getpid()); return 0; } print_num(num) long num; { do { (void) printf("%c", string[num % size]); num /= size; } while (num); } -- Jon Zeeff Branch Technology