This past weekend I was doing some database testing and needed to generate some random numbers to populate a table. My typical go-to utility for generating one random number is head piped to od and tr:
$ head -c 8 /dev/urandom | od -An -t x | tr -d ''
3a366d317245d2ed ` This works well and can be aded to a loop to get more than one number. But I was curious if there was a native Linux utility available to do this work.
↧