+       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)?
  • Rec... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
    • ... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum

Reply via email to