Modified randomSeed, now uses unsigned long.

This commit is contained in:
Chris--A 2015-05-21 16:52:42 +10:00
parent e8eb06aa17
commit 0051eadd2a
2 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ void noTone(uint8_t _pin);
// WMath prototypes // WMath prototypes
long random(long); long random(long);
long random(long, long); long random(long, long);
void randomSeed(unsigned int); void randomSeed(unsigned long);
long map(long, long, long, long, long); long map(long, long, long, long, long);
#endif #endif

View File

@ -27,7 +27,7 @@ extern "C" {
#include "stdlib.h" #include "stdlib.h"
} }
void randomSeed(unsigned int seed) void randomSeed(unsigned long seed)
{ {
if (seed != 0) { if (seed != 0) {
srandom(seed); srandom(seed);