1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
OpenBSD
Go to file
tb 534f87a39f Rework random(6)
Fix putchar(3) handling and a number of other issues in the random(6)
code. In -e mode, avoid bias due to truncation of the return code to
8 bits. In default mode, actually treat the denominator as a floating
point number and print the line with a probability of 1 / denominator.
This allows e.g. printing 2/3 of stdin with 'random 1.5'.

Includes code for uniform random floats by Taylor R. Campbell from
https://mumble.net/~campbell/2014/04/28/uniform-random-float
and clz64() by me.

From lucic71 () bronze ! ctrl-c ! club, thanks.

ok deraadt
2022-08-23 06:35:53 +00:00
bin -v option should only act based upon syscall success. test case is 2022-08-16 13:52:41 +00:00
distrib sync 2022-08-15 17:58:49 +00:00
etc Remove alpha kernel code to process userland misaligned accesses, and the 2022-08-10 10:41:35 +00:00
games Rework random(6) 2022-08-23 06:35:53 +00:00
gnu Build the Compress::Raw::Zlib perl module with /usr/lib/libz 2022-08-10 07:50:16 +00:00
include Add #define for RTLD_NOLOAD missed in last ld.so commit. 2022-08-20 17:39:22 +00:00
lib Provide the remaining QUIC API. 2022-08-21 19:42:15 +00:00
libexec Support RTLD_NOLOAD in ld.so. From guenther@. OK jca@ guenther@ 2022-08-20 14:11:31 +00:00
regress Revise regress now that SSL_QUIC_METHOD exists. 2022-08-21 19:46:19 +00:00
sbin Align description of -g and -u with mount_tmpfs.8 2022-08-20 07:03:24 +00:00
share update a few German airports; from Thomas Wager 2022-08-21 03:08:52 +00:00
sys Move PRU_SHUTDOWN request to (*pru_shutdown)(). 2022-08-22 21:18:48 +00:00
usr.bin Up to version 1.22.4, groff_mdoc(7) only considered the first word 2022-08-19 12:49:36 +00:00
usr.sbin log a warning if we can't resolve the ldap server hostname 2022-08-23 02:57:27 +00:00
.gitignore Ignore tags files 2021-11-11 14:03:21 +00:00
Makefile minor cranking of libraries exposes a problem, details too long to explain. 2020-04-05 20:14:14 +00:00
Makefile.cross riscv64 is a LP64_ARCH, list it as such. 2021-05-03 00:04:31 +00:00