I am looking for PRBS Pattern Generating C/C++ API, So that i can insert it in Payload of UDP.
If anybody know the procedure for generating PRBS pattern it would be greatfull.
I'm unsure if there's a library which can match your purpose. I can give you some pointers on the implementation though:
The basis of your implementation will be a LFSR. You can implement one in two ways:
For more information on how taps are specified and what sequences you can obtain you can start here. Note that your implementation choices above can have the same cycle length and sequence of output bits for an appropriate choice of initial states (seeds).
That's your basic requirement right there. LFSRs have output streams that are very uniformly distributed and sufficiently long periods. I'd suggest not to use it for cryptographic purposes, as it's extremely weak - being a linear system. There are workarounds, but nothing substantial except the shrinking generator (which I find extremely cool).
Links to implementations have already been given, so good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With