Skip to content

Commit 0051ead

Browse files
committed
Modified randomSeed, now uses unsigned long.
1 parent e8eb06a commit 0051ead

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hardware/arduino/avr/cores/arduino/Arduino.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ void noTone(uint8_t _pin);
239239
// WMath prototypes
240240
long random(long);
241241
long random(long, long);
242-
void randomSeed(unsigned int);
242+
void randomSeed(unsigned long);
243243
long map(long, long, long, long, long);
244244

245245
#endif

hardware/arduino/avr/cores/arduino/WMath.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extern "C" {
2727
#include "stdlib.h"
2828
}
2929

30-
void randomSeed(unsigned int seed)
30+
void randomSeed(unsigned long seed)
3131
{
3232
if (seed != 0) {
3333
srandom(seed);

0 commit comments

Comments
 (0)