Date: Sun, 16 Jan 2000 19:52:03 -0800 (PST) From: Kris Kennaway <kris@hub.freebsd.org> To: Peter Jeremy <peter.jeremy@alcatel.com.au> Cc: audit@FreeBSD.ORG Subject: Re: libc patch to warn about tempfiles Message-ID: <Pine.BSF.4.21.0001161946030.44688-100000@hub.freebsd.org> In-Reply-To: <00Jan17.142945est.40327@border.alcanet.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 17 Jan 2000, Peter Jeremy wrote: > I think that changing the algorithm to use a denser encoding (eg > encoding the PID in base-62 or more, rather than base 10) would be > a better solution. This way you don't need to change the functions > using mktemp() et al. Hmm..that's not a bad idea. With base-64 we'd have 36 bits, of which about 17 would be taken up by the encoded PID, leaving about 520000 possible tempfiles (a factor of 10^4 better than now). OTOH, using 10 X's in the current system has a target space of size 52^6, or 1.97e+10 :-) Kris ---- "How many roads must a man walk down, before you call him a man?" "Eight!" "That was a rhetorical question!" "Oh..then, seven!" -- Homer Simpson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0001161946030.44688-100000>