可以舉一個有關crypto/rand[1]使用的小例子嗎?該函數Read具有一個字節數組作為參數。為什么?如果訪問/ dev / urandom以獲取隨機數據。func Read(b []byte) (n int, err os.Error)[1] http://golang.org/pkg/crypto/rand/
- 1 回答
- 0 關注
- 192 瀏覽
添加回答
舉報
提交
取消