rand
Package rand provides cryptographically secure random value generation for durable programs.
rand
Functions
bytes(length: Int)
Example:
rand.bytes(16)
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
length | Int | ✓ |
Returns: Bytes
int64(max: Int)
Example:
rand.int64(100)
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
max | Int | ✓ |
Returns: Int
text()
Example:
rand.text()
Returns: String