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的内部状态。
应用推荐