登录
推荐
文章
Go 技术
课程
下载
专题
AI
crypto/rand
已收录文章:1篇
一月内
三天内
一周内
一月内
三月内
最新
最热
Golang
·
Go问答
| 2小时前 |
随机数
·
Go问答
·
安全编程
·
crypto/rand
·
math/rand
·
验证码
安全
随机数
Go
crypto/rand
math/rand
Go crypto/rand 和 math/rand 怎么选:验证码、抽样与安全边界
Go 里 crypto/rand 和 math/rand 都能生成随机值,但用途完全不同。本文用验证码、抽样和测试数据三个场景拆开安全资产、攻击路径、并发控制与验证方法,给出不容易选错的边界。
163
收藏