removed the warning due to the type mismatch.

The type of 'random() % 0x100' is long int. So we use the unsigned
int variable.