From: Joel VanderWerf Date: 2001-11-03T08:44:41+09:00 Subject: [ruby-talk:24234] Re: inline comments, IDs Tobias Reif wrote: > ID: something (digits and word characters or whatever) that's guaranteed > to be unique for the time the program runs. (random numbers could be > duplicate) What about combining (Time.now.to_f * 1000000).to_i and Process.pid? Including the pid ensures that even if two process start at around the same time, you get a different pair of numbers. -- Joel VanderWerf California PATH, UC Berkeley mailto:vjoel@path.berkeley.edu Ph. (510) 231-9446 http://www.path.berkeley.edu FAX (510) 231-9512