Skip to content

Modern Math CryptoULongInt

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Math Library › Math Library › CryptoULongInt

CryptoULongInt

Returns a secure random 64-bit value from the operating system.

Syntax

CryptoULongInt( )

Examples

#import "std/numeric"
using numeric

'' Eight cryptographically secure bytes as one number
dim as uint64 a = CryptoULongInt( )
dim as uint64 b = CryptoULongInt( )

print a <> b                 '' -1 (true), with overwhelming probability

'' This is what RngFromEntropy uses for its seed

Library: Math Library
Category: Math Library
Documented under: Nothing Becomes A Keyword

Clone this wiki locally