[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Guile 2.0.0 cannot open /dev/urandom
From: |
Martin Ward |
Subject: |
Guile 2.0.0 cannot open /dev/urandom |
Date: |
Thu, 17 Feb 2011 22:58:33 +0000 |
User-agent: |
KMail/1.12.4 (Linux/2.6.31.13-desktop-1mnb; KDE/4.3.5; x86_64; ; ) |
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
address@hidden 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
- Guile 2.0.0 cannot open /dev/urandom,
Martin Ward <=