all: Unify random string generation into a single package

ping @lmars