AOCL-RNG
AOCL-RNG is a high-performance, vector-based random number generation library optimized for AMD “Zen” processors. It offers a comprehensive suite of pseudorandom and quasi-random number generators, along with statistical distribution functions covering both continuous and discrete types. The library supports integer, single-precision, and double-precision outputs, featuring seven base generators and 23 distribution generators. Users can also specify a custom-built generator as the base for all distribution generators. AOCL-RNG depends on AOCL-LibM and the single-threaded AOCL-BLAS library.
The package containing AOCL-RNG binaries, examples, and documentation can be found in the Downloads section.
AOCL-SecureRNG
The AOCL-SecureRNG library provides APIs to access the cryptographically secure random numbers generated by AMD’s AOCL-RNG. It uses RDRAND and RDSEED x86 instructions provided by AMD hardware. Applications can link to the library and invoke either a single or a stream of random numbers in 16-, 32-, or 64-bit formats or arbitrary sized bytes.
There are no updates or modifications since version 5.1.
Documentation
- AOCL-RNG API guide
- Blog: AMD Secure Random Number Generator Library
- Prior versions: Random Number Generator Libraries Archive
Downloads
| File Name | Version | Size | Launch Date | OS | Bitness | Description |
| Binary Packages Compiled with AOCC 5.2 | ||||||
| aocl-rng-linux-aocc-5.3.0.tar.gz | 5.3 | 900KB | 05/18/2026 | RHEL, Ubuntu, SLES | 64-bit | AOCC compiled AOCL-RNG library binary package sha256 Checksum: 056eb82815c984f44966da071977f478914d9c9fa98915b183e00ea6825e9398 |
| aocl-securerng-linux-aocc-5.3.0.tar.gz | 5.3 | 20KB | 05/18/2026 | RHEL, Ubuntu, SLES | 64-bit | AOCC compiled AOCL-SecureRNG library binary package SHA-256 checksum: e582d942b0fad673a2be957e574530be9ec4a62fe8007d8cc6ca2827e866c3df |
| Binary Packages Compiled with GCC 14.2.1 | ||||||
| aocl-rng-linux-gcc-5.3.0.tar.gz | 5.3 | 792KB | 05/18/2026 | RHEL, Ubuntu, SLES | 64-bit | GCC compiled AOCL-RNG library binary package SHA-256 checksum: cef3d95390b2ecae5b1faf8a962cb1218645f169aea52bf08ae4245e4ad4b865 |
| aocl-securerng-linux-gcc-5.3.0.tar.gz | 5.3 | 20KB | 05/18/2026 | RHEL, Ubuntu, SLES | 64-bit | GCC compiled AOCL-SecureRNG library binary package SHA-256 checksum: 03fe0c01b95783705e318935e9fbf70d736cac0782c968429c6c9fb8d96a192f |
| Windows Installer Compiled with Clang 19 | ||||||
| AOCL_Windows-setup-5.3.0-AMD.exe | 5.3 | 154MB | 05/18/2026 | Windows 11, Windows 10 | 64-bit | Windows installer file containing all the AOCL library binaries compiled with Clang 19. SHA-256 checksum: 021bfd69a439c3c2a72a6b5cf45d1de0e2f0deddb92ba19e73b9caeb259cf9c8 |