void OCFillRandomMem(uint8_t * location, uint16_t len)
{
void OCFillRandomMem(uint8_t * location, uint16_t len)
{
+ int i, j, rand_idx;
+ i = len;
if (!location)
{
return;
}
if (!location)
{
return;
}
{
*location++ = OCGetRandomByte();
}
uint8_t *temp = (char *) OICCalloc(len, sizeof(char));
int *mask = (int *) OICCalloc(len, sizeof(int));
{
*location++ = OCGetRandomByte();
}
uint8_t *temp = (char *) OICCalloc(len, sizeof(char));
int *mask = (int *) OICCalloc(len, sizeof(int));
for (i = 0; i < len; i++)
{
mask[i] = 0;
for (i = 0; i < len; i++)
{
mask[i] = 0;