然而,您可能认为这样是不必要的,并且只会给跟踪输出添加更多混乱,因为您必须将该随机数作为一个参数传递给被调用的程序。
You may, however, decide that this is unnecessary and only adds more clutter to the trace output, given that you have to pass the random number as a parameter to the called programs.
为此,一种简单的方法就是仅在派生某个线程时才生成一个随机数,并将该随机数追加到所有输出行上。
A simple approach to this is to just generate a random number when a thread is spawned and prepend that number to all output lines.
采用公开的加密算法SHA256对混合电路输出的数据进行扩散,使产生的随机数具有更好的随机特性。
The seed with better randomness is output. The random number of mixed circuits processed by SHA256 is diffused to get good character number with good randomness.
应用推荐