found 32 bytes in uuid.c
This commit is contained in:
parent
64cb749c89
commit
113231b3a3
|
@ -10,11 +10,10 @@ uint32_t GetUUID32(void){
|
||||||
iap_return = iapReadSerialNumber();
|
iap_return = iapReadSerialNumber();
|
||||||
if (iap_return.ReturnCode == 0){
|
if (iap_return.ReturnCode == 0){
|
||||||
uint32_t block[4];
|
uint32_t block[4];
|
||||||
uint32_t k[4] = {1,2,3,4};
|
uint32_t k[4] = {0,0,0,0};
|
||||||
block[0] = iap_return.Result[0];
|
int i;
|
||||||
block[1] = iap_return.Result[1];
|
for(i=0; i<4; i++)
|
||||||
block[2] = iap_return.Result[2];
|
block[i] = iap_return.Result[i];
|
||||||
block[3] = iap_return.Result[3];
|
|
||||||
xxtea_encode_words(block, 4, k);
|
xxtea_encode_words(block, 4, k);
|
||||||
return block[0];
|
return block[0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue