added lookup() YCP builtin
more secure srandom() implementation