iOS中获取一个安全的随机数
Generates an array of cryptographically secure random bytes.
生成一组密码安全的随机数
一个数:
uint8_t a = 0;
int returnValue = SecRandomCopyBytes(kSecRandomDefault, 1, &a);
多个数
uint8_t a[2];
int returnValue = SecRandomCopyBytes(kSecRandomDefault, 2, a);
浙公网安备 33010602011771号