Some other things changed to secure_random