A simple example of how to create a file containing random data from a pseudo random number generator in Golang
You will need to install Golang in your environment.
No need any external package.
To run, just type
go run main.go
The output is:
Bytes written: 1024
And file called prng_file.bin
will be created.