[Tutor] randomness
lumbricus@gmx.net
lumbricus@gmx.net
Sat, 16 Jun 2001 15:58:42 +0200
On Sat, Jun 16, 2001 at 01:10:02PM +0530, lonetwin@yahoo.com wrote:
>
> Hi There,
>
Hello!
> >
> >What's a good way to generate a random unique file name? I can't use
> >os.tempnam/os.tmpnam, are they *nix specific? I'm using Windows ME with
>
> How 'bout
> filename = "tmpfile%d.html" % os.getpid()
> I've seen some *nix proggys do that, U cud also save the pid so that U can delete the file
> later.....
>
man symlink-attacks :-)
> Just a suggestion
>
> Peace
> Steve
Grreetz J"o!
--
Some people need a good imaginary cure for their painful imaginary ailment.