Skip to content

//kotlin-sdk/fr.gasmartbuilding.gasmartaccessreadersdk/LockReconUtils/generateTRNG

generateTRNG

[androidJvm]\ fun generateTRNG(length: Int): ByteArray

This method generates true random numbers, compliant with NIST SP800-90.

This function will generate an array of random bytes of the specified length using the SecureRandom class, which provides a cryptographically strong random number generator (RNG).

Return

a ByteArray of true random numbers.

Parameters

androidJvm

length the length of the random byte array to generate.