GithubHelp home page GithubHelp logo

ciubotaru / eca-lkm Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 11 KB

Elementary cellular automata implemented as a Linux kernel module

Makefile 4.91% C 95.09%
lkm linux-module cellular-automata rng random-number-generator linux

eca-lkm's Introduction

eca-lkm
=======

eca-lkm is a Linux kernel module (LKM) that provides a pseudo-random number
generator (PRNG) based on an elementary cellular automaton (ECA) that
follows Wolfram's Rule 30.

Installation
------------

Building a kernel module requires properly configures kernel source and headers.
To compile eca-lkm from source code:

$ make

To install the newly-built module into the module tree (will need root privileges, e.g. with 'sudo -E'):

$ make modules_install

To load the installed module:

$ modprobe eca30

or, alternatively, to load it from the source tree:

$ insmod eca30.ko

This will create a new character device, /dev/eca30.

udev
----

To have a device with proper attributes created under /dev when your module
is loaded, copy the file named 99-eca30.rules to /etc/udev/rules.d

$ mkdir -p /etc/udev/rules.d

$ cp 99-eca30.rules /etc/udev/rules.d

dkms
----

To have your module automatically rebuilt with every kernel update, you can
install DKMS and use it to manage your module.

Under /usr/src create a directory named eca30-0.0.1 and copy the source files
into it. Then install the module:

$ dkms install -m eca30 -v 0.0.1

Usage
-----

Reading from /dev/eca30 produces random numbers. Writing to /dev/eca30 changes
the internal state of ECA ("random pool").

Licensing
---------

eca-lkm is free software, and is released under the terms of the GNU General 
Public License version 2 or any later version.

eca-lkm's People

Contributors

ciubotaru avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.