First functioning version of generic PRBS generator.