iso15sim: unfix the random number
This commit is contained in:
1 parent
40069f6fd1
commit
bad694d779
1 file changed
+2
-2
+2
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user