found 32 bytes in uuid.c

This commit is contained in:
schneider 2011-12-18 04:22:41 +01:00
parent 64cb749c89
commit 113231b3a3
1 changed files with 4 additions and 5 deletions

View File

@ -10,11 +10,10 @@ uint32_t GetUUID32(void){
iap_return = iapReadSerialNumber();
if (iap_return.ReturnCode == 0){
uint32_t block[4];
uint32_t k[4] = {1,2,3,4};
block[0] = iap_return.Result[0];
block[1] = iap_return.Result[1];
block[2] = iap_return.Result[2];
block[3] = iap_return.Result[3];
uint32_t k[4] = {0,0,0,0};
int i;
for(i=0; i<4; i++)
block[i] = iap_return.Result[i];
xxtea_encode_words(block, 4, k);
return block[0];
}