True Random Number Array Generator
This node generates an array of true random numbers using system entropy.
The TRNG Array node produces a batch of high-entropy random numbers.
The True Random Number Array Generator node functions similarly to the standard TRNG node but generates a list (array) of numbers at once using the system's cryptographic source.
Array
| Data | Description |
|---|
| Size | The number of random elements to generate. Default: 1. Max: 10,000. |
Actions
| Signal | Description |
|---|
| Do | Generates the array. |
Outputs
Data
| Data | Description |
|---|
| Generated Array | An array containing the generated random numbers. |
Signals
| Signal | Description |
|---|
| Done | Triggered when the array generation is complete. |
Usage
Example Use Cases
- Bulk Key Generation: Generate multiple secure tokens at once.
- Fair Shuffling: Generate random weights for a deck of cards to ensure a truly random shuffle.
Detailed Behavior
- Source: Uses
crypto.getRandomValues (browser) or crypto.randomBytes (Node.js) to fill a buffer, then converts it to numbers.
- Performance: Collecting entropy can be slower than PRNGs. Use only when necessary.
- Limits: Capped at 10,000 elements per call.
Troubleshooting
- Performance: If this node feels slow compared to ISAAC, it is because true randomness requires more system resources.