I'm trying to call web3's eth_sign with metamask's provider, like so
var signature = await web3.eth.sign(web3.utils.utf8ToHex(randomMsg),acc0)
The metamask windows notification pops up and everything works correctly, I click on Sign and it seems to work since the loading finishes and I'm returned to the list of transactions, but the notification never closes and the eth_sign promise never resolves.
I'm using web3.js version 1.2.4 and the latest metamask. I've tried updating to the 2.0.0 alpha version of Web3 but the same happened.