arc4random和random之间有什么区别? [英] What's the difference between arc4random and random?
本文介绍了arc4random和random之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
arc4random与random之间的区别是什么?
What's the difference between arc4random and random?
推荐答案
random
已知是可预测的,因此不能用于安全的伪随机数生成。 arc4random
是一个较新的,不太可预测的伪随机数生成器。如果您没有使用它来保证安全,随机
将正常工作。
random
is known to be predictable and thus not to be used for secure pseudo-random number generation. arc4random
is a newer, less predictable pseudo-random number generator. If you are not using it for anything secure, random
will work fine.
这篇关于arc4random和random之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文