Implement seedrandom