Richard W.M. Jones
f013b15fa1
mllib: Add a utility function for safely reading from /dev/urandom.
...
OCaml's buffered 'in_channel' has a 64k buffer, so using it to read a
few bytes from /dev/urandom removes a lot of the system's entropy (for
example /proc/sys/kernel/random/entropy_avail goes from ~3000 to 128).
This patch was originally by Edwin Török for builder.ml. I
generalized it because there are two other places where we did
over-sized reads from /dev/urandom.
2013-11-14 10:52:16 +00:00
..
2013-10-22 13:48:41 +01:00
2013-11-14 10:52:16 +00:00
2012-04-01 20:02:25 +01:00
2012-04-01 20:02:25 +01:00
2012-04-01 20:02:25 +01:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:59:48 +01:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:25:19 +01:00
2013-10-29 19:24:08 +00:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:25:19 +01:00
2013-09-05 13:10:00 +01:00
2013-10-15 20:41:22 +01:00
2013-08-03 10:25:19 +01:00
2013-10-03 21:42:04 +01:00
2013-10-03 22:02:47 +01:00
2013-08-03 10:25:19 +01:00
2013-09-05 10:09:58 +01:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:25:19 +01:00
2013-10-07 14:19:38 +01:00
2013-08-03 10:25:19 +01:00
2013-10-03 21:42:04 +01:00
2013-08-03 10:25:19 +01:00
2013-10-03 21:42:05 +01:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:59:48 +01:00
2013-08-03 10:25:19 +01:00
2013-09-06 09:08:14 +01:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:59:48 +01:00
2013-08-03 10:25:19 +01:00
2013-08-03 10:25:19 +01:00
2013-10-03 21:42:04 +01:00
2013-10-03 21:42:04 +01:00
2012-07-19 11:22:40 +01:00
2013-04-22 16:18:19 +01:00
2013-09-23 13:49:21 +01:00