Skip to content

valadaptive/uwurandom

Repository files navigation

/dev/uwurandom

/dev/urandom is made out of cold hard math. Instead, consider using /dev/uwurandom, which generates data through a tiny catgirl furiously typing away utter nonsense inside your computer.

Disclaimer: I am very bad at C. While I've tested this myself and haven't managed to cause a kernel panic, this is not production-quality code. Use at your own risk.

Installation and usage

Installation

Compilation is easy :3

First up, you'll need to install kernel headers for whichever kernel version you've installed.

On Ubuntu or Debian (assuming your kernel is already up-to-date):

sudo apt-get install linux-headers-generic

On Fedora:

sudo dnf install kernel-devel

On Arch:

sudo pacman -S linux-headers

(or linux-lts-headers if you're using the linux-lts kernel)

Once you've installed the kernel headers, you should be able to simply run make to build the kernel module:

make

Usage

Usage is also easy! >w< To insert the kernel module, just run:

sudo insmod uwurandom.ko

When the module is loaded, it automatically sets up the /dev/uwurandom device, so you can do:

cat /dev/uwurandom

and witness its sheer glory with your own eyes.

If things are a bit too silly and you want to un-load the kernel module, run:

sudo rmmod uwurandom

About

Like /dev/urandom, but objectively better

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •