Since RAND_file_name() uses strlen, make sure the number that's compared to it has the type size_t. Included the needed headers to make that happen.