Replacing pointless random string function in favour of SecureRandom.