dynamic length for cryptonight