Permalink
Browse files

Introduced the frandom module

Frandom is a Linux kernel random number generator,
which is 10-50 times faster than what you get from Linux'
built-in /dev/urandom. And it uses very little (/dev/frandom)
or none (/dev/erandom) of the kernel's entropy pool,
so it is very useful for applications that require a
handy source for lots of random data.

The test-results i get are quite good:

time head -c 10m /dev/urandom > /dev/null
0m4.84s real

time head -c 10 /dev/frandom > /dev/null
0m1.39s real
  • Loading branch information...
Blechd0se committed Feb 15, 2013
1 parent 1fd9f4a commit 52e4f2d00b2ea11e3643adb4c4235bdda7a87b5b
View
@@ -30,6 +30,9 @@
*.patch
*.gcno
*.rej
+*.builtin
+*.xzkern
+arch/arm/boot/compressed/lib1funcs.S
#
# Top-level generic files
@@ -1078,7 +1078,7 @@ CONFIG_INPUT_TOUCHSCREEN=y
# CONFIG_TOUCHSCREEN_W90X900 is not set
CONFIG_TOUCHSCREEN_QUANTUM_OBP=y
CONFIG_CMDLINE_OPTIONS=y
-CONFIG_TOUCHSCREEN_SWEEP2WAKE=y
+# CONFIG_TOUCHSCREEN_SWEEP2WAKE=y
CONFIG_INPUT_MISC=y
# CONFIG_INPUT_ATI_REMOTE is not set
# CONFIG_INPUT_ATI_REMOTE2 is not set
@@ -1133,6 +1133,7 @@ CONFIG_UNIX98_PTYS=y
CONFIG_HW_RANDOM=y
# CONFIG_HW_RANDOM_TIMERIOMEM is not set
CONFIG_HW_RANDOM_OMAP3_ROM=y
+CONFIG_FRANDOM=y
# CONFIG_R3964 is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_TCG_TPM is not set
View
@@ -785,6 +785,8 @@ config NWFLASH
source "drivers/char/hw_random/Kconfig"
+source "drivers/char/frandom/Kconfig"
+
config NVRAM
tristate "/dev/nvram support"
depends on ATARI || X86 || (ARM && RTC_DRV_CMOS) || GENERIC_NVRAM
View
@@ -89,6 +89,7 @@ obj-$(CONFIG_TOSHIBA) += toshiba.o
obj-$(CONFIG_I8K) += i8k.o
obj-$(CONFIG_DS1620) += ds1620.o
obj-$(CONFIG_HW_RANDOM) += hw_random/
+obj-$(CONFIG_FRANDOM) += frandom/
obj-$(CONFIG_PPDEV) += ppdev.o
obj-$(CONFIG_NWBUTTON) += nwbutton.o
obj-$(CONFIG_NWFLASH) += nwflash.o
@@ -0,0 +1,16 @@
+#
+# FRandom Generator
+#
+
+config FRANDOM
+ tristate "FRANDOM support"
+ default m
+ ---help---
+ Frandom is a Linux kernel random number generator,
+ which is 10-50 times faster than what you get from Linux'
+ built-in /dev/urandom. And it uses very little (/dev/frandom)
+ or none (/dev/erandom) of the kernel's entropy pool,
+ so it is very useful for applications that require a
+ handy source for lots of random data.
+
+ If unsure, say Y.
@@ -0,0 +1,4 @@
+#
+# Makefile for frandom
+#
+obj-$(CONFIG_FRANDOM) := frandom.o
Oops, something went wrong.

0 comments on commit 52e4f2d

Please sign in to comment.