use SecureRandom for ruby

Issue #9 

This would require ruby >= 1.9.

@morten