LPS-35805: PortalUtil.generateRandomKey does't generate random keys

- the bud has been corrected