flatten_errs flattens multiple errors into one
math_rand_alpha generates a mathmatical random alphabet sequence of the requested length.