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.