sensorium / Mozzi

sound synthesis library for Arduino

Home Page:https://sensorium.github.io/Mozzi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The randSeed() argument type is different in the header and source files.

marksard opened this issue · comments

Hello, I am trying to use randSeed() and I am getting a link error.

When I tried to use randSeed() I was getting a link error.
The reason is that the type of randSeed is different in mozzi_rand.h and mozzi_rand.cpp. xorshiftSeed was also the same.

mozzi_rand.h

  • void randSeed(unsigned long seed);
  • void xorshiftSeed(unsigned long seed);

mozzi_rand.cpp

  • void randSeed(long seed);
  • void xorshiftSeed(long seed);

I am grateful for your projects.
Thanks in advance.

Thanks for that. Changed them to unsigned long. Does it work now?

Thanks!
I was able to build it. And it works now.