Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 663 Bytes

File metadata and controls

33 lines (22 loc) · 663 Bytes

lib-random

Cryptographically secure random key generation and unique identifier utilities.

Installation

Add this dependency to your build.gradle:

dependencies {
    implementation 'io.seqera:lib-random:1.0.0'
}

Usage

Secure random number generation with multiple encoding formats:

import io.seqera.random.LongRndKey

// Generate random keys
def longKey = LongRndKey.rndLong()                // Returns Long
def stringKey = LongRndKey.rndLongAsString()      // Returns 15-digit String
def hexKey = LongRndKey.rndHex()                  // Returns 12-digit hex String

Testing

./gradlew :lib-random:test