Fix more warnings

This commit is contained in:
Adam Honse 2022-07-19 00:48:35 -05:00
parent bf6ae63ae6
commit ced081d168

View file

@ -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;