Skip to content

Commit 1b9647e

Browse files
Chris--Afacchinm
authored andcommitted
Modified randomSeed, now uses unsigned long.
1 parent 29e2534 commit 1b9647e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)