Sorry guys, I have a patch already. After the line

     alias_method random_name, meth.to_sym

I should have added

     private random_name

this ensures that nobody calls it directly from outside (this could
cause a problem).