Fix CI_Security::get_random_bytes() length validation