+ if (tmp->open ("/dev/random", "r") && tmp->stat()->ischr) { + if (Stdio.Stat s = file_stat("/dev/urandom")) + if (s->ischr) + factor = 1;
Won't this crash if /dev/urandom doesn't exist (s==0)?
*replying to self*
No it won't because of the if() enclosing the variable definition. Evil. :-9
pike-devel@lists.lysator.liu.se