Skip to content

Instantly share code, notes, and snippets.

@espio999
Last active November 10, 2021 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save espio999/f0560e224550a591862dea125b76c079 to your computer and use it in GitHub Desktop.
Save espio999/f0560e224550a591862dea125b76c079 to your computer and use it in GitHub Desktop.
/dev/random with PowerShell
$size = 128 - 1
[byte[]] $data = 0..$size | %{Get-Random -Maximum $size}
Set-Content -Value $data -Encoding byte my_binary.dat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment