Currently srand(undef) assumes its seed is 0. That seems wrong to me. Is there a reason not to change it to generate a seed in this circumstance?