Needs review: stupid copy of fec::recode_random code.
looks to me like this is now used in multiple places, maybe it will be time to refactor after this
mentioned in issue #11