From d2d5d42a7e9dbdeec1a8a45929b60c21c137c16a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 16 Apr 2015 09:34:13 -0600 Subject: [PATCH] Reference to MAX_RAND should be RAND_MAX --- UnitTests/CListBox/clistbox_main.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnitTests/CListBox/clistbox_main.cxx b/UnitTests/CListBox/clistbox_main.cxx index 09938e0a2..737d3bbaf 100644 --- a/UnitTests/CListBox/clistbox_main.cxx +++ b/UnitTests/CListBox/clistbox_main.cxx @@ -274,7 +274,7 @@ int clistbox_main(int argc, char *argv[]) printf("clistbox_main: Selecting five options\n"); for (int i = 0; i < 5; i++) { - selected[i] = ((nOptions - 1) * rand()) / MAX_RAND; + selected[i] = ((nOptions - 1) * rand()) / RAND_MAX; printf("clistbox_main: Selecting option %d\n", selected[i]); listbox->removeOption(selected[i]); test->showListBox(listbox);