Fix more warnings
This commit is contained in:
parent
bf6ae63ae6
commit
ced081d168
1 changed files with 14 additions and 14 deletions
2
cli.cpp
2
cli.cpp
|
|
@ -248,7 +248,7 @@ bool ParseColors(std::string colors_string, DeviceOptions *options)
|
|||
if (color == "random")
|
||||
{
|
||||
options->random_colors = true;
|
||||
srand(time(NULL));
|
||||
srand((unsigned int)time(NULL));
|
||||
int index = rand() % (sizeof(human_colors) / sizeof(human_colors[0])) + 1; //Anything other than black
|
||||
rgb = human_colors[index].rgb;
|
||||
parsed = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue