]> oss.titaniummirror.com Git - oss-web.git/blobdiff - in/rgblamp/random.md
Website document reorganization
[oss-web.git] / in / rgblamp / random.md
diff --git a/in/rgblamp/random.md b/in/rgblamp/random.md
deleted file mode 100644 (file)
index 3a26df2..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-title: A Source of Randomness
-linktitle: rgb-random
-parent: rgb-code
-ctime: 2012-03-24
-
-# Randomness
-
-The lamp implements a 'party' mode, which randomizes the next color and the time
-for which that color will be displayed before the next color change.  The code
-uses an efficient parallel bit implementation of a Galois linear shift register.
-However, unless a random seed value can be acquired, the sequence will be the
-same each and every time.
-
-# Truly random
-
-The PIC16 has no PRNG (pseudo-random number generator).  An approach to
-simulating a PRNG is to use the ADC to capture from an unused pin.  The
-assumption is that noise present in the last least significant bit or so of the
-result can be summed to generate a pseudo-random number.  No testing was done to
-attempt to quantify the quality of this methodology, but it certainly provides
-some amount of randomness and is adequate for the simple needs of this project.