durusmail: quixote-users: Re: timestamp in upload.py prone to inaccuracy (patch)
timestamp in upload.py prone to inaccuracy (patch)
2003-03-16
timestamp in upload.py prone to inaccuracy (patch)
2003-03-17
Re: timestamp in upload.py prone to inaccuracy (patch)
2003-03-17
Re: timestamp in upload.py prone to inaccuracy (patch)
2003-03-17
Re: timestamp in upload.py prone to inaccuracy (patch)
2003-03-17
Re: timestamp in upload.py prone to inaccuracy (patch)
2003-03-17
2003-03-17
Re: timestamp in upload.py prone to inaccuracy (patch)
2003-03-17
2003-03-17
Re: timestamp in upload.py prone to inaccuracy (patch)
Neil Schemenauer
2003-03-17
Why use random?  A counter should be sufficient.

      now = time()
      i = 0
      while 1:
          i += 1
          filename = "upload.%s.%s" % (now, i)
          [...]

I doubt anyone is uploading more than a handful of files per
millisecond.

  Neil

reply