我的问题是,很明显,例如所有的按钮可以有相同的图像因为它只需要一个随机数。
My problem is that, obviously, for example all buttons could have the same image since it just takes a random number.
下面,需要生成nonce字段,它包装了一个随机数作为一个整数。
Next, I need to author the nonce field, which wraps a random number as an integer.
一个简单的统计特性,很快的RNG密码足够好艾萨克。我个人使用它,每当我需要良好的随机数。
A simple, pretty fast RNG with statistical properties good enough for cryptography is ISAAC. Personally I use it whenever I need decent random Numbers.
应用推荐