2017-01-26 21:21:51 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Micolous Jan 2017
|
|
|
|
// Iceman Jan 2017
|
|
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
|
|
// the license.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// pseudo rng generator. To be used when PM3 simulates Mifare tag.
|
2019-03-09 15:59:13 +08:00
|
|
|
// i.e. 'hf mf sim'
|
2017-01-26 21:21:51 +08:00
|
|
|
// 'hf 14a sim'
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifndef __RANDOM_H
|
|
|
|
#define __RANDOM_H
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
#include "ticks.h"
|
2017-01-29 17:41:48 +08:00
|
|
|
void fast_prand();
|
|
|
|
void fast_prandEx(uint32_t seed);
|
2017-01-26 21:21:51 +08:00
|
|
|
uint32_t prand();
|
2019-03-16 04:17:07 +08:00
|
|
|
#endif
|