CryptRand: remove newlines from logging message