I want to generate password reset token in Magento 2.
In magento 1, I was generating token by using below code -
$oldtoken = $cust->getRpToken();
$newResetPasswordLinkToken = Mage::helper('customer')->generateResetPasswordLinkToken();
$cust->changeResetPasswordLinkToken($newResetPasswordLinkToken);`
But not sure how to generate in magento 2.
I have search complete /vendor/magento/module-customer
but not able to generate Token.
Edit -
Code for Magento 2 -
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$helper = $objectManager->get('\Magento\Customer\Helper\View');
$newResetPasswordLinkToken = $helper->generateResetPasswordLinkToken();
$cust->changeResetPasswordLinkToken($newResetPasswordLinkToken);