16.2.2. On Windows - 5.2 English - 57404

AOCL User Guide (57404)

Document ID
57404
Release Date
2025-12-29
Version
5.2 English

AOCL-SecureRNG should be installed as instructed in Using Prebuilt Binaries.

Complete the following steps to use AOCL-SecureRNG library on Windows:

  1. Create a 64-bit console app project in Visual Studio 17 2022.

  2. Use the following navigation to select Clang-cl compiler: Project > Properties > Configuration Properties > General > Platform Toolset > LLVM(Clang-cl)

  3. Use secrng_test.c as a reference to find the AOCL-SecureRNG API call flow.

  4. Include the AOCL-SecureRNG header file secrng.h and call required AOCL-SecureRNG APIs under window application.

  5. Copy the AOCL-SecureRNG header file secrng.h and AOCL-SecureRNG DLL library amdsecrng.dll and amdsecrng.lib to same project folder.

  6. Compile and then run the application.

  7. You may create Fortran based project in similar manner and compile it using ifort compiler.

  8. You can also compile your application using AOCL-SecureRNG static library amdsecrng-static.lib.