summaryrefslogtreecommitdiffstats
path: root/src/usr/secureboot/trusted/test/trustedbootTest.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/secureboot/trusted/test/trustedbootTest.H')
-rwxr-xr-xsrc/usr/secureboot/trusted/test/trustedbootTest.H6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/usr/secureboot/trusted/test/trustedbootTest.H b/src/usr/secureboot/trusted/test/trustedbootTest.H
index 28917a959..83792cba0 100755
--- a/src/usr/secureboot/trusted/test/trustedbootTest.H
+++ b/src/usr/secureboot/trusted/test/trustedbootTest.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2015,2018 */
+/* Contributors Listed Below - COPYRIGHT 2015,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -905,7 +905,9 @@ class TrustedBootTest: public CxxTest::TestSuite
for (auto pTpm: tpmList)
{
uint64_t randNum = 0;
- err = TRUSTEDBOOT::GetRandom(pTpm, randNum);
+ err = TRUSTEDBOOT::GetRandom(pTpm,
+ reinterpret_cast<uint8_t*>(&randNum),
+ sizeof(randNum));
num_ops ++;
if(err)
{
OpenPOWER on IntegriCloud