rename random() to getRandom(), just to please you.

This commit is contained in:
Stefan `Sec` Zehl 2011-07-24 15:58:47 +02:00
parent 80f914e58f
commit c896b4645e
4 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ elem_t coeff_b, base_x, base_y;
unsigned char rnd1() unsigned char rnd1()
{ {
return random() & 0xFF; return getRandom() & 0xFF;
} }

View File

@ -19,7 +19,7 @@ void randomInit(void)
xxtea_encode_words(state, STATE_SIZE, I); xxtea_encode_words(state, STATE_SIZE, I);
} }
uint32_t random(void) uint32_t getRandom(void)
{ {
xxtea_encode_words(state, STATE_SIZE, I); xxtea_encode_words(state, STATE_SIZE, I);
return state[0]; return state[0];

View File

@ -2,6 +2,6 @@
#define _RANDOM_H_ #define _RANDOM_H_
void randomInit(void); void randomInit(void);
uint32_t random(void); uint32_t getRandom(void);
#endif #endif

View File

@ -12,7 +12,7 @@ void rftransfer_send(uint16_t size, uint8_t *data)
buf[1] = size >> 8; buf[1] = size >> 8;
buf[2] = size & 0xFF; buf[2] = size & 0xFF;
uint16_t rand = random() & 0xFFFF; uint16_t rand = getRandom() & 0xFFFF;
buf[3] = rand >> 8; buf[3] = rand >> 8;
buf[4] = rand & 0xFF; buf[4] = rand & 0xFF;