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