From: Tobias Reif Date: 2001-11-03T08:47:24+09:00 Subject: [ruby-talk:24235] Re: inline comments, IDs Joel VanderWerf wrote: > 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. id = format("%09.0f", counter) works. Tobi -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.xhtml go_to('www.ruby-lang.org').get(ruby).play.create.have_fun http://www.pinkjuice.com/ruby/