]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/mifareutil.c
FIX: 'EMV compiling' - Makefiles are very picky about how things are done. its parse...
[proxmark3-svn] / armsrc / mifareutil.c
index 4795a7ec4cfa3ce7a9009947c138a425db3e6c57..4100ef5483a4387659abba90169328174d10b743 100644 (file)
@@ -121,7 +121,10 @@ int mifare_classic_authex(struct Crypto1State *pcs, uint32_t uid, uint8_t blockN
 \r
        // "random" reader nonce:\r
        //byte_t nr[4] = {0x55, 0x41, 0x49, 0x92};\r
-       byte_t nr[4] = {0x01, 0x01, 0x01, 0x01};\r
+       fast_prand();\r
+       byte_t nr[4];\r
+       num_to_bytes(prand(), 4, nr);\r
+       //byte_t nr[4] = {0x01, 0x01, 0x01, 0x01};\r
        \r
        uint32_t nt, ntpp; // Supplied tag nonce\r
        \r
Impressum, Datenschutz