GoでSecureRandomを使いたい - Qiita

Rubyの以下のコード require 'securerandom' puts SecureRandom.hex(16) をGoに移植したいと思ったとします。すると以下のようになります。 package main import ( crand "crypto/ran...