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

[REBOL] Re: RWT: Cookies

From: rotenca:telvia:it at: 5-Mar-2003 14:12

Hi,
> Moreover, you need to initialize the random generator each time with a > different random/seed to avoid always using the same random sequence. > > IMHO, if you want to keep things simple, I think this would be a bit > more secure : > > random/seed to-string now/precise > id: copy "" > loop 30 [ append id first random "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" ] > id
Perhaps could help: randomize: has [seed] [ seed: now/precise until [seed <> now/precise] random/seed now/precise seed: none ] --- Ciao Romano