We present a novel algorithm for implementing Owen-scrambling,combining the generation and distribution of the scrambling bits in a single self-contained compact process. We employ a context-free grammar to build a binary tree of symbols, and equip …