corda / net.corda.core.crypto / random63BitValue

random63BitValue

fun random63BitValue(): Long

Returns a random positive non-zero long generated using a secure RNG. This function sacrifies a bit of entropy in order to avoid potential bugs where the value is used in a context where negative numbers or zero are not expected.