Backporting to ruby 1.8.7

Sorry, newbie question here.

I need securerandom.uuid on ruby 1.8.7. I found this

http://softover.com/UUID_in_Ruby_1.8

Which says to cut and paste the code. But cut and paste it to where?

Could someone tell me what to do with that code?

Thanks so much!

Eh … paste it into your code. The most important point is that it
gets executed before the methods are actually used.

You could simply paste it into your main program, which might be handy
for a quick test. For a cleaner solution, especially for a larger
project, I would put this code into a separate file (say:
securerandom_monkeypatch.rb) and require this file whereever you want to
use uuid.

My mistake . I didn’t pay attention to the date.