mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-29 18:52:13 +01:00
Merge pull request #3202 from Chris--A/randomSeed
Modified randomSeed, now uses unsigned long.
This commit is contained in:
commit
d92bf5bdaa
@ -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
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user