Use seeded random by default
Remove unused functions
Fix browser env