unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#13768: --without-posix code uses scm_getpid() in libguile-2.0.2
@ 2013-02-19 23:38 Jan Schukat
  2013-02-24 19:21 ` Andy Wingo
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Schukat @ 2013-02-19 23:38 UTC (permalink / raw)
  To: 13768

I'm experimenting a little with statically linking a minimal build of 
libguile. So while no one really would want to build it it with 
--without-posix (except when you want the same functionality on all 
platforms including windows in your program), and this is a low priority 
bug and I can easily fix it myself for my purposes, it is still a bug.

What happens is, in random.c in random_state_of_last_resort on line 668 
scm_getpid is used to seed the random generator. So either a 
preprocessor switch or a hand constructed scm like in scm_getpid 
(scm_from_ulong(getpid())) should be used there.

Regards





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-02-25 20:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-19 23:38 bug#13768: --without-posix code uses scm_getpid() in libguile-2.0.2 Jan Schukat
2013-02-24 19:21 ` Andy Wingo
2013-02-25  1:17   ` Mark H Weaver
2013-02-25  9:06     ` Andy Wingo
2013-02-25 18:58       ` Mark H Weaver
2013-02-25 20:39         ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).