Last active
September 24, 2019 15:14
-
-
Save marcusrussi/4d5c0f9d129d2cd4cce40ec962cca0bf to your computer and use it in GitHub Desktop.
Generate a list of 64-bit integers, one per line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env/bash | |
| NUM_INTS=100 | |
| NUM_BYTES=$((8*NUM_INTS)) | |
| head -c $NUM_BYTES /dev/urandom | | |
| od -t u8 -An -w8 | # Request 8-bit unsigned integers, no radix, 8 bits per line | |
| sed 's/ //g' | # Replace any spaces with nothing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment