github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/tests/includes/random.sh (about)

     1  rnd_str() {
     2  	# shellcheck disable=SC2018
     3  	rnd=$(
     4  		head /dev/urandom | tr -dc a-z0-9 | head -c 8
     5  		echo ''
     6  	)
     7  	echo "${rnd}"
     8  }