From: Martin Ward <martin@gkc.org.uk>
To: bug-guile@gnu.org
Subject: Guile 2.0.0 cannot open /dev/urandom
Date: Thu, 17 Feb 2011 22:58:33 +0000 [thread overview]
Message-ID: <201102172258.33666.martin@gkc.org.uk> (raw)
Guile 1.8.6 can open /dev/urandom (which I use for seeding a random
number generator):
% guile
guile> (open-input-file "/dev/urandom")
#<input: /dev/urandom 9>
guile>
But guile 2.0.0 gives this error:
~/Documents/guile-2.0.0/meta/guile
GNU Guile 2.0.0
Copyright (C) 1995-2011 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
scheme@(guile-user)> (open-input-file "/dev/urandom")
ERROR: In procedure open-file:
ERROR: In procedure fport_end_input: Invalid argument
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]> ,bt
0 (open-file "/dev/urandom" "r")
scheme@(guile-user) [1]>
--
Martin
STRL Reader in Software Engineering and Royal Society Industry Fellow
martin@gkc.org.uk http://www.cse.dmu.ac.uk/~mward/ Erdos number: 4
G.K.Chesterton web site: http://www.cse.dmu.ac.uk/~mward/gkc/
Mirrors: http://www.gkc.org.uk and http://www.gkc.org.uk/gkc
next reply other threads:[~2011-02-17 22:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-17 22:58 Martin Ward [this message]
2011-02-18 4:44 ` Guile 2.0.0 cannot open /dev/urandom Mark Harig
2011-02-27 22:47 ` Andy Wingo
2011-03-03 11:57 ` Andy Wingo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201102172258.33666.martin@gkc.org.uk \
--to=martin@gkc.org.uk \
--cc=bug-guile@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).