Cope with the new rand module