aelfimow / dd-rdrand

Fill a file with random numbers using RDRAND instruction of x86 CPUs like dd from /dev/random

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dd-rdrand

dd using RDRAND instruction of x86 CPUs.

Usage

dd_rand of=<file> bs=<block size> count=<number of blocks>

Arguments:

  • of: output file
  • bs: block size (in bytes)
  • count: number of blocks

Example creating a file a.bin filled with random numbers total of 2048 bytes:

dd_rand of=a.bin bs=1024 count=2

Note

The assembly functions have been generated in rdrand-measurement-gen.

About

Fill a file with random numbers using RDRAND instruction of x86 CPUs like dd from /dev/random

License:GNU General Public License v3.0


Languages

Language:Assembly 98.5%Language:C++ 1.2%Language:Makefile 0.2%Language:C 0.1%