-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.RandomUInt32
Andrew Lambert edited this page Nov 26, 2022
·
6 revisions
libsodium.RandomUInt32
Protected Function RandomUInt32(Optional UpperBound As UInt32) As UInt32| Name | Type | Comment |
|---|---|---|
| Upperbound | UInt32 | Optional. The maximum allowed value of the returned number |
An unpredictable unsigned 32-bit integer.
Generates an unpredictable UInt32. If Upperbound is specified then the return value is in the range 0-Upperbound (exclusive) with a "best effort" guarantee of a uniform distribution.
- RandomBytes
- Generating random data in the libsodium documentation.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2016-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.
- libsodium module
- FAQ
-
Examples
- Secure memory
- Password hashing
- Generic hashing
- Encrypting streams or files
- PKI
- Encryption
- Digital signatures
- SKI
- Encryption
- Message authentication