update lfprng.c with init and exit
some modified