Skip to content
/ ur4ndom Public

Kernel module outputting "4\n" over and over again at a rate of 1.4 GiB/s

Notifications You must be signed in to change notification settings

ambiso/ur4ndom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ur4ndom

Getting perfect randomness from your kernel.

xkcd about randomness; a function always returning 4 a number that was chosen by "a fair dice roll"

Usage

make
sudo insmod ur4ndom.ko
head /dev/ur4ndom

Example output:

$ head /dev/ur4ndom 
4
4
4
4
4
4
4
4
4
4

Much better than other randomness sources:

pv </dev/ur4ndom >/dev/null
8.11GiB 0:00:06 [1.35GiB/s]

Compare that to the extremely slow /dev/urandom:

pv </dev/urandom >/dev/null
1.97GiB 0:00:04 [ 505MiB/s]

Obviously don't use this for anything other than fun

This is a joke.

About

Kernel module outputting "4\n" over and over again at a rate of 1.4 GiB/s

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published