mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01:00
f3c4b5fcf4
It's arbitrary data and we're not supposed to do math on it, so it's safe to use a signed Java `int`. Also use `new Random().nextInt()` to generate the nonce. We were previously generating a random double, multiplying by `Long.MAX_VALUE` and then truncating the low 32-bits of the long. Using `.nextInt()` might actually generate MORE randomness since there will be no truncation. |
||
---|---|---|
.. | ||
src | ||
build.gradle | ||
findbugs.xml |