Fixed randomization issue in Wormhole functionality