Question
(0) In this assignment you will write a program that produces pseudo-random bits by simulating a linear feedback shift register, and then use it to
(0) In this assignment you will write a program that produces pseudo-random bits by simulating a linear feedback shift register, and then use it to implement a simple form of encryption for digital pictures. For this portion of the assignment, you will: implement the LFSR class implement unit tests using the Boost test framework Your first task is to write a data type that simulates the operation of a LFSR by implementing the following API: class LFSR { public: LFSR(string seed, int t); // constructor to create LFSR with // the given initial seed and tap int step(); // simulate one step and return the // new bit as 0 or 1 int generate(int k); // simulate k steps and return // k-bit integer private: ... } Testing. Implement unit tests using the Boost test framework.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started