Switch to os.urandom to generate data