lkml.org 
[lkml]   [1996]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: CONFIG_RANDOM (compromise?)


On Wed, 15 May 1996, Albert Cahalan wrote:

> Add an option called CONFIG_WEAK_RANDOM. When set, most of the
> calls to add randomness become NOPs and the pool becomes much
> smaller, perhaps only 256 bytes. A pseudo-random number generator
>
> Those of you that are _really_ paranoid (see a doctor...) can
> even add CONFIG_STRONG_RANDOM to have every single IRQ add
> randomness. You can get 2 bits of Pentium counter data every
> clock tick! Let the rest of us avoid the overhead.

In fact I did allready somethig very similiar to that idea.
Please take a glace at it. Its uuencoded and gzip'ed it is a patch against
linux-1.99.4

begin 644 arbitrary-1.99.4.gz
M'XL(".+RFS$``V%R8FET<F%R>2TQ+CDY+C0`[5AM4QO)$?X,OZ+MN\02>D$2
M"`P.%V/`-A<##LCGNKISJ4:[(VFBW9WUOH!UB?][GNY9K598V'<?DJI4A;*E
MU;ST3#_S]-,]ZYOQF%HYM1)JM2)]UQJ;0%-@HOQ3J]L^.&CO;JO$FVZK()ZJ
M;5^//1N-S<2-6-NUV6JUOFU@8Y!KNE!SZNY2]^EAKW^XLT/=@X.]S4:C\17K
M&X-I[N;M46_G<&?W<'?/S7O^G%J]3J^Y1PW^VJ?GSS?I.SJYNGQY_FIX_/:"
M3$J1S2C56:7C_?'@Y/7IU:OUO=>#DVI'H^RX&5Q?7:+_^/+T:M4R9K.!&YM'
M_J;_.^$U.T_WUJ.[VO,`N*N#?C>V]Z>M0ML_[#]=0MO=ZS"T_/6_!6VX]W2V
M'MK5G@>@71VT\5[[@A$!FKW#W8/#[GIH[TV[!^U^.4V@W1'6\I>#=@'LQ?FK
MXXNK=S=G1_,JWH/CZW-I7@_LNXOSF_\2M"9.'X!VI><A:%<&;5S8B%[J$75[
MS%K\V]U?#^WJM'O08F9%$/;W&%E\WN/LW\]/.KWAX/CM`Q@^R.F;L^OSXS?_
M:73]Q-SJ)-W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