I’m trying to initialise my random numbers using
srand(time(NULL)); like everyone recommends online. I’m including
<time.h> at the top of my file.
When I try to compile on Particle Dev it gives me this cyptic error:
An when I click it to check what’s wrong with it I see this conflicting “informational” message:
This is really getting on my nerves.
What’s wrong? Is this a bug or am I doing something wrong?
Is there any alternative to using
time(NULL)? I tried
millis() and it worked without any includes, is it equivalent?