22-Pseudorandom Number Generators-01-03-2025
22-Pseudorandom Number Generators-01-03-2025
• Eg – 1 : a = 7, c = 0, m = 32, X0 = 1
• Eg – 2 : a = 5, c = 0, m = 32, X0 = 1
• Park proposes three tests to be used in evaluating the random number generator :
• T1 : The function should be a full-period generating function. That is, the function
should generate all the numbers from 0 through m - 1 before repeating.
• For T1, m should be a prime number and c = 0 and certain values of a, the period of
generating function is m-1
• These numbers are selected for use in IBM 360 family of computers.
• Cryptanalysis
• If any one of the value is known then all other parameters can be computed.
• X1 = (aX0 + c) mod m
• X2 = (aX1 + c) mod m
• X3 = (aX2 + c) mod m
Blum Blum Shub Generator
• Procedure :
• p = 7 and q = 11
• Let n = p x q ( n = 7 x 11 = 77)