Beginner problem.
Go to solution
Solved by elpiop,
The srand function takes an unsigned int as a parameter. You're trying to pass in char *, which is what the error is saying. I think you just need to use 'time(NULL)' instead of ctime(NULL). Ctime converts the time to a character string, when srand() needs just the time as an unsigned int.
-
Featured Topics
-
Topics
-
0
-
PDifolco ·
Posted in Graphics Cards1 -
HARDWELL9191 ·
Posted in CPUs, Motherboards, and Memory1 -
ChrisLoudon ·
Posted in Laptops and Pre-Built Systems1 -
midix ·
Posted in CPUs, Motherboards, and Memory1 -
2
-
Hotblood ·
Posted in CPUs, Motherboards, and Memory3 -
6
-
11
-
UGAATL ·
Posted in LTTStore.com Merch1
-
-
play_circle_filled
Latest From ShortCircuit:
Lian-Li, do this on all of your cases! - Lian-Li O11D x Lamborghini
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now