Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: RWT: Cookies

From: petr:krenzelok:trz:cz at: 4-Mar-2003 16:15

Hello Maarten, I would like to see following function getting into your cookies module. You had it included with previous cookie handling version, but now I can't see it. However - I found out Windows timer granularity is not that great and I got two consecutive generate-ID functions generating identical ID. Then I found out, that my assumption of checksum/secure randomizing result was probably wrong. So I added random/secure and I hope now we will really get unique-enough IDs ... of course I would like others to comment, as I am no cryptography guru :-) generate-ID: func [/local t][ t: mold checksum/secure mold now/time/precise random/secure copy/part at t 3 ((length? t) - 3) ] cheers, -pekr-