The hardy wild cousins of domesticated crops can teach us how to adapt to a hotter, more unpredictable future.