Shift bits to the right...
authorJoachim Breitner <mail@joachim-breitner.de>
Mon, 1 Feb 2010 11:16:49 +0000 (11:16 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Mon, 1 Feb 2010 11:16:49 +0000 (11:16 +0000)
src/blink.c

index f94e615..8fd9f93 100644 (file)
@@ -161,7 +161,7 @@ blinklight_startblink(const gchar *seed) {
                        // Uses last 8 bits
                        seq[i].time = 50 + hash % 200;
                        // So remove them
-                       hash = (hash << 8); 
+                       hash = (hash >> 8); 
                        // printf("Time %d: %d\n", i, seq[i].time);
                }
        }