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

if (newseed > 0) seed = newseed; if (newseed > 0) seed = newseed;
} }


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

+ 1
- 1
teensy3/WProgram.h View File

uint32_t random(uint32_t howbig); uint32_t random(uint32_t howbig);
int32_t random(int32_t howsmall, int32_t howbig); int32_t random(int32_t howsmall, int32_t howbig);
void randomSeed(uint32_t newseed); void randomSeed(uint32_t newseed);
void srandom(uint32_t newseed);
void srandom(unsigned int newseed);


#include "pins_arduino.h" #include "pins_arduino.h"



Loading…
Cancel
Save