AOCL-SecureRNG should be installed as instructed in Using Prebuilt Binaries.
Complete the following steps to use AOCL-SecureRNG library on Windows:
Create a
64-bit console appproject inVisual Studio 17 2022.Use the following navigation to select
Clang-clcompiler:Project > Properties > Configuration Properties > General > Platform Toolset > LLVM(Clang-cl)Use
secrng_test.cas a reference to find the AOCL-SecureRNG API call flow.Include the AOCL-SecureRNG header file
secrng.hand call required AOCL-SecureRNG APIs under window application.Copy the AOCL-SecureRNG header file
secrng.hand AOCL-SecureRNG DLL libraryamdsecrng.dllandamdsecrng.libto same project folder.Compile and then run the application.
You may create Fortran based project in similar manner and compile it using ifort compiler.
You can also compile your application using AOCL-SecureRNG static library
amdsecrng-static.lib.