We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
我不确定是否有一个图书馆可以满足您的目的。 不过,我可以为您提供一些有关实现的指导:
您的实现的基础将是 LFSR。 您可以通过两种方式实现:
有关如何指定抽头以及可以获得哪些序列的更多信息,您可以从此处开始。 请注意,您上面的实现选择可以具有相同的循环长度和输出位序列,以适当选择初始状态(种子)。
这就是你的基本要求。 LFSR 的输出流分布非常均匀且周期足够长。 我建议不要将它用于加密目的,因为它非常弱 - 作为一个线性系统。 有一些解决方法,但除了收缩生成器(我觉得非常酷)之外,没有什么实质性的。
已经给出了实现的链接,祝你好运!
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!
用于网络的 PRBS 模式通常使用线性反馈移位寄存器来完成。 也许用软件模拟其中之一就足够了。
PRBS patterns for networking is often done using Linear Feedback Shift Registers. Perhaps simulating one of these in software would suffice for you.
这是 koders.com 上的一个
Here is one on koders.com