SecureBlackbox Lite 2020 Node.js Edition

Questions / Feedback?

Rnd Class

Properties   Methods   Events   Configuration Settings   Errors  

The Rnd class class is a basic provider of random number generation functionality.

Syntax

secureblackboxlite.rnd()

Remarks

Use Rnd control to generate pseudo-random numbers or sequences. Methods like NextBytes and NextInt return the next PRNG output, whereas SeedBytes or SeedInt seed the generator with outside entropy.

It is a good idea to use one shared (singleton) Rnd object per process, as it helps spread the entropy across many part of the project, resulting in better and more secure randomization.

Property List


The following is the full list of the properties of the class with short descriptions. Click on the links for further details.

AlphabetAlphabet to use for random string generation.

Method List


The following is the full list of the methods of the class with short descriptions. Click on the links for further details.

ConfigSets or retrieves a configuration setting.
NextBytesGenerates an array of random bytes.
NextIntGenerates a random integer.
NextPassGenerates a random password.
NextStringGenerates a random string of characters.
RandomizeSeeds the random generator with a system-originating input.
SeedBytesSeeds the generator with a data in a byte array.
SeedIntSeeds the generator with an integer value.
SeedStringSeeds the generator with a string value.
SeedTimeSeeds the generator with current time.

Event List


The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.

ErrorInforms about errors during cryptographic operations.
NotificationThis event notifies the application about an underlying control flow event.

Configuration Settings


The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox Lite 2020 Node.js Edition - Version 20.0 [Build 8166]