AbstractThis paper mainly focuses on the programming experiments of thelinear congruence method and the square selection method in thepseudo-random sequence generation algorithm.In Windows,Java programwas used to do 100,000 sets of data experiments for linear congruencemethod and 10,000 sets of control data experiments for 4-bit and 6-bitsquaring method respectively.Then,different initial values were selected forcomparison under the same conditions.Then MATLAB is used to carry outthe run test and data graph for the full period of linear congruence method.Inthe square method,8 groups of data of 4 bits and 6 bits are randomly selectedfor the run test and data graph.The results show that the random sequencesgenerated by the line complementary method can reach the maximum periodand are relatively stable,while the periodic instability of the randomsequences generated by the square median method is greatly affected by theinitial value.The linear congruence method can reach the maximum period inthe period,is not affected by the initial value in the initial value,and isreasonably distributed in the equilibrium.Therefore,linear congruencemethod is more suitable for key distribution.Key words:Rndom Squence;LCG;Middle-square Method;period
暂无评论内容