rename random() to getRandom(), just to please you.
This commit is contained in:
parent
80f914e58f
commit
c896b4645e
|
@ -21,7 +21,7 @@ elem_t coeff_b, base_x, base_y;
|
|||
|
||||
unsigned char rnd1()
|
||||
{
|
||||
return random() & 0xFF;
|
||||
return getRandom() & 0xFF;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ void randomInit(void)
|
|||
xxtea_encode_words(state, STATE_SIZE, I);
|
||||
}
|
||||
|
||||
uint32_t random(void)
|
||||
uint32_t getRandom(void)
|
||||
{
|
||||
xxtea_encode_words(state, STATE_SIZE, I);
|
||||
return state[0];
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
#define _RANDOM_H_
|
||||
|
||||
void randomInit(void);
|
||||
uint32_t random(void);
|
||||
uint32_t getRandom(void);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -12,7 +12,7 @@ void rftransfer_send(uint16_t size, uint8_t *data)
|
|||
buf[1] = size >> 8;
|
||||
buf[2] = size & 0xFF;
|
||||
|
||||
uint16_t rand = random() & 0xFFFF;
|
||||
uint16_t rand = getRandom() & 0xFFFF;
|
||||
buf[3] = rand >> 8;
|
||||
buf[4] = rand & 0xFF;
|
||||
|
||||
|
|
Loading…
Reference in New Issue