Fixing a bug in tree generation that was preventing proper detection of blocks due to different random seed used.