ring-buffer randomnize testing
preliminary work for defcfun*