Get rid of deprecation warning on crypto