\File{dhrand.c},{07:41},{Feb  4 1997}
\L{\LB{\K{\#include} \S{}\"squid.h\"\SE{}}}
\L{\LB{}}
\L{\LB{\K{static} u\_long next = 1;}}
\L{\LB{}}
\L{\LB{\C{}\/* generate a psuedo\-random number *\/\CE{}}}
\L{\LB{\K{int}}}
\L{\LB{\Proc{dhRand}dhRand()}}
\L{\LB{\{}}
\L{\LB{        \K{return} ((next = next * 1103515245 + 12345) \% ((u\_int)DH\_RAND\_MAX + 1));}}
\L{\LB{\}}}
\L{\LB{}}
\L{\LB{\C{}\/* seed for generating a psuedo\-random number *\/\CE{}}}
\L{\LB{\K{void}}}
\L{\LB{\Proc{dhSrand}dhSrand(u\_int seed)}}
\L{\LB{\{}}
\L{\LB{        next = seed;}}
\L{\LB{\}}\Tab{8}{}}
