Listing 5 shows the PRNG implementation using synchronization, and the alternate implementation using CAS.
清单5显示了使用同步的PRNG实现和使用CAS备选实现。
This month, I'll add another implementation to that benchmark, one that uses AtomicLong to update the PRNG state.
本月,我将向该基准添加其他实现,使用 AtomicLong更新PRNG状态的实现。
On the other hand, it may be possible to get a clearer glimpse of the internal PRNG state by inspecting other random values that may be used in the site.
从另一方面看,通过检查应用在这个网站中其它的随机值,可能更清楚地看清prng的内部状态。
If a cryptanalyst thinks that a user has used the same key to encrypt two different files, he can XOR the two files together and cancel out the output from the PRNG.
如果密码分析认为,在用户使用相同的密钥来加密两个不同的文件,他可以异或两个文件一起,并取消了从PRNG输出。
Tim Peierls has constructed a simple benchmark for measuring the relative scalability of synchronized versus Lock, using a simple linear congruence pseudorandom number generator (PRNG).
TimPeierls用一个简单的线性全等伪随机数生成器(PRNG)构建了一个简单的评测,用它来测量synchronized和Lock之间相对的可伸缩性。
Tim Peierls has constructed a simple benchmark for measuring the relative scalability of synchronized versus Lock, using a simple linear congruence pseudorandom number generator (PRNG).
TimPeierls用一个简单的线性全等伪随机数生成器(PRNG)构建了一个简单的评测,用它来测量synchronized和Lock之间相对的可伸缩性。
应用推荐