initialize seed and generate bits