while(num >= sizeof(rand_buf))
while(num >= (int)sizeof(rand_buf))
static int cca_get_random_bytes(unsigned char* buf, int num)	{	long ret_code;	long reason_code;	long exit_data_length;	unsigned char exit_data[4];	unsigned char form[] = "RANDOM  ";	unsigned char rand_buf[8];	while(num >= sizeof(rand_buf))		{		randomNumberGenerate(&ret_code, &reason_code, &exit_data_length,			exit_data, form, rand_buf);		if (ret_code)			return 0;		num -= sizeof(rand_buf);		memcpy(buf, rand_buf, sizeof(rand_buf));		buf += sizeof(rand_buf);		}	if (num)		{		randomNumberGenerate(&ret_code, &reason_code, NULL, NULL,			form, rand_buf);		if (ret_code)			return 0;		memcpy(buf, rand_buf, num);		}	return 1;	}