lfsr: fix verification and spin bugs
authorAlex Pyrgiotis <apyrgio@grnet.gr>
Tue, 12 Mar 2013 08:28:35 +0000 (10:28 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 12 Mar 2013 12:09:14 +0000 (13:09 +0100)
commitd0f85362c978904661bd6785cd6a7f3437ff85dd
tree0df937a547b5076069c878e8df91e0b2726e6461
parenta5e0ee11ec34cfc70a78aee4f7a2eeb01d9cf41f
lfsr: fix verification and spin bugs

Changes:

1. Verification now works properly and reports for which value it fails
2. Fix a mishandling of spin incrementation which led to multiple
calculation of the same values

Signed-off-by: Alex Pyrgiotis <apyrgio@grnet.gr>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
lib/lfsr.c
lib/lfsr.h
t/lfsr-test.c