![if ((status = B_SetAlgorithmInfo](/images/new-backgrounds/49550/4955047x1.webp)
Generating Random Numbers
software. After the seed has been passed to the software algorithm info type, this is similar to any
Note: This example will work whether the seed was gathered from the Intel RNG or via another, backup method.
The example in this section is almost identical to the example in the
Note: For this software call, you do not need to create a special session chooser. A standard
Step 1: Create an Algorithm Object
As before, you need to start by creating an algorithm object. This is identical to the software implementation
if ((status = B_CreateAlgorithmObject (&randomAlgorithm)) != 0) break;
Step 2: Set the Algorithm Object
To set the random algorithm object to use
Note: This algorithm info type is named after the standard where the pseudo- random number generator is defined. Because SHA1 is considered one of the most secure implementations for creating
if ((status = B_SetAlgorithmInfo
(randomAlgorithm, AI_X962Random_V0, NULL_PTR)) != 0) break;
2 0 | R S A B S A F E C r y p t o - C I n t e l H a r d w a r e U s e r ’s G u i d e |