update saf

This commit is contained in:
Zhi Guan
2017-02-22 18:21:02 +08:00
parent c966a3a3d1
commit b683fd00e0
11 changed files with 1488 additions and 39 deletions

View File

@@ -70,7 +70,7 @@ int SAF_GenRandom(
return SAR_IndataErr;
}
if (!RAND_bytes(pucRand, len)) {
if (!RAND_bytes(pucRand, uiRandLen)) {
SAFerr(SAF_F_SAF_GENRANDOM, SAF_R_GEN_RANDOM_FAILURE);
return SAR_GenRandErr;
}