Update net.rb

Make `nonce` more randomly