Function getRandomId: Fix creating new wallet