Skip to content

Instantly share code, notes, and snippets.

@marcusrussi
Last active September 24, 2019 15:14
Show Gist options
  • Select an option

  • Save marcusrussi/4d5c0f9d129d2cd4cce40ec962cca0bf to your computer and use it in GitHub Desktop.

Select an option

Save marcusrussi/4d5c0f9d129d2cd4cce40ec962cca0bf to your computer and use it in GitHub Desktop.
Generate a list of 64-bit integers, one per line
#!/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