iso15sim: unfix the random number

This commit is contained in:
Yann GASCUEL 2024-01-19 15:37:51 +01:00
commit bad694d779

View file

@ -2496,8 +2496,8 @@ void SimTagIso15693(uint8_t *uid, uint8_t block_size) {
case ISO15693_GET_RANDOM_NUMBER:
if (g_dbglevel >= DBG_DEBUG) Dbprintf("GetRandomNumber cmd");
recv[0] = ISO15_NOERROR;
recv[1] = 0x42; // perfectly random numbers generated
recv[2] = 0x42; // using fair dice rolls
recv[1] = (uint8_t)(reader_eof_time >> 24) ^ 0xFF; // poor random number
recv[2] = (uint8_t)(reader_eof_time >> 16) ^ 0xFF;
recvLen = 3;
break;
case ISO15693_ENABLE_PRIVACY: