raz / commit 00c37b1b

commit
00c37b1bf699daa1289b9cbbf7c8719b844b4dcf
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
566e0c1e
raz-lib: Sys.random stops the program if it can't fill b

patch · log

1 file changed, +1 -1

doc/raz-lib.md (history) modified +1 -1

@@ -328,7 +328,7 @@
328328 proc clock*: I64; (* nanoseconds, on a clock that only goes forward *)
329329 proc now*: I64; (* nanoseconds since 1970-01-01, UTC *)
330330 proc sleep*(ms: INT);
331-proc random*(b: []U8); (* b filled with random bytes *)
331+proc random*(b: []U8); (* b filled with random bytes; stops the program if it can't be *)
332332
333333 proc connect*(path: []U8): INT; (* a stream socket, connected to the Unix socket at path: its fd *)
334334 proc connectTcp*(addr: []U8; port: INT): INT; (* addr an IPv4 or IPv6 address, as numbers *)