Browse Source

Fix srandom

teensy4-core
PaulStoffregen 7 years ago
parent
commit
d5139195b4
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      teensy3/WMath.cpp
  2. +1
    -1
      teensy3/WProgram.h

+ 1
- 1
teensy3/WMath.cpp View File

@@ -28,7 +28,7 @@ void randomSeed(uint32_t newseed)
if (newseed > 0) seed = newseed;
}

void srandom(uint32_t newseed)
void srandom(unsigned int newseed)
{
seed = newseed;
}

+ 1
- 1
teensy3/WProgram.h View File

@@ -84,7 +84,7 @@ int32_t random(void);
uint32_t random(uint32_t howbig);
int32_t random(int32_t howsmall, int32_t howbig);
void randomSeed(uint32_t newseed);
void srandom(uint32_t newseed);
void srandom(unsigned int newseed);

#include "pins_arduino.h"


Loading…
Cancel
Save