Definition at line 96 of file r250.py. 00096 : 00097 "generate the next block of randoms, quickly" 00098 #the next two lines contain a slight subtlety: 00099 #the first line involves trivially non-overlapping operations (assuming q < p/2). 00100 #the second line involves intentionally overlapped regions, so that the operation must be proceeding in 00101 #place to make sure that the proper recursion is really happening. 00102 self.ranbuf[:self.q]^=self.ranbuf[-self.q:] 00103 self.ranbuf[self.q:]^=self.ranbuf[:-self.q] 00104 self.counter=0 00105 def next(self):
|