Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

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