You can use pure-ruby instead (cleaner I think):

    fsid = SecureRandom.uuid