freebsd kernel with SKQ
Go to file
Conrad Meyer c62ff2800b Deprecate sranddev(3) API
It serves no useful purpose and wasn't as popular as its equally meritless
cousin, srandomdev(3).

Setting aside the problems with rand(3) in general, the problem with this
interface is that the seed isn't shared with the caller (other than by
attacking the output of the generator, which is trivial, but not a hallmark of
pleasant API design).  The (arguable) utility of rand(3) or random(3) is as a
semi-fast simulation generator which produces consistent results from a given
seed.  These are mutually at odd.  Furthermore, sometimes people got the
mistaken impression that a high quality random seed meant a weak generator like
rand(3) or random(3) could be used for things like cryptographic key
generation.  This is absolutely not so.

The API was never part of a standard and was not widely used in tree.  Existing
in-tree uses have all been removed.

Possible replacement in out of tree codebases:

	char buf[3];
	time_t t;

	time(t);
	strftime(buf, sizeof(buf), "%S", gmtime(&t));
	srand(atoi(buf));

Relnotes:	yes
2019-12-14 08:28:10 +00:00
bin Update Makefile.depend files 2019-12-11 17:37:53 +00:00
cddl Update Makefile.depend files 2019-12-11 17:37:53 +00:00
contrib libtelnet: Replace bogus use of srandomdev + random to generate "public key pair" 2019-12-13 05:42:57 +00:00
crypto sshd: make getpwclass wrapper MON_ISAUTH not MON_AUTH 2019-11-20 16:30:37 +00:00
etc gmultipath: add ATF tests 2019-12-06 00:12:14 +00:00
gnu Update Makefile.depend files 2019-12-11 17:37:53 +00:00
include Deprecate sranddev(3) API 2019-12-14 08:28:10 +00:00
kerberos5 Update Makefile.depend files 2019-12-11 17:37:53 +00:00
lib Deprecate sranddev(3) API 2019-12-14 08:28:10 +00:00
libexec rtld: make checks for mmap(2) failures compliant with documentation. 2019-12-12 22:59:22 +00:00
release release: chase ports r519089 (rpi-firmware update) 2019-12-05 16:17:56 +00:00
rescue Remove unused defines since r147075 2019-07-12 04:44:50 +00:00
sbin pfctl: Warn users when they run into kernel limits 2019-12-14 02:03:47 +00:00
secure Update Makefile.depend files 2019-12-11 17:37:53 +00:00
share Better copyright advice 2019-12-13 22:32:05 +00:00
stand zfs boot: fix a crash in a rarely taken path in fzap_lookup 2019-12-13 22:04:13 +00:00
sys uma dbg: flexible size for slab debug bitset too 2019-12-14 05:21:56 +00:00
targets Update dirdeps.mk and gendirdeps.mk 2019-12-11 17:38:15 +00:00
tests Import ACPICA 20191213. 2019-12-13 16:51:08 +00:00
tools Regularize my copyright notice 2019-12-04 16:56:11 +00:00
usr.bin random(6): produce random results 2019-12-13 04:37:39 +00:00
usr.sbin Add accessors for the Vendor Specific Extended Capability (VSEC) 2019-12-13 23:46:59 +00:00
.arcconfig
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml cirrus.yml: stop fetching OVMF.fd now that we're using the pkg 2019-07-30 16:40:33 +00:00
.clang-format Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore .gitignore: Add LINT kernel configurations generated into SRCDIR 2019-08-10 18:22:22 +00:00
COPYRIGHT Happy New Year 2019! 2019-01-01 00:25:25 +00:00
LOCKS LOCKS: update current locks 2018-06-09 03:08:04 +00:00
MAINTAINERS [skip ci] Add me to MAINTAINERS for fusefs 2019-07-28 15:20:47 +00:00
Makefile Take arm.arm (armv5) out of universe 2019-11-03 19:36:34 +00:00
Makefile.inc1 revert r355609 2019-12-13 14:48:44 +00:00
Makefile.libcompat libcompat: build 32-bit rtld and ldd as part of "everything" 2019-11-07 22:58:10 +00:00
Makefile.sys.inc AUTO_OBJ: For all top-level targets enforce using an OBJDIR. 2017-12-05 21:29:47 +00:00
ObsoleteFiles.inc Deprecate sranddev(3) API 2019-12-14 08:28:10 +00:00
README README: add generic notes about GENERIC and NOTES 2018-06-17 19:44:24 +00:00
README.md README: add generic notes about GENERIC and NOTES 2018-06-17 19:44:24 +00:00
RELNOTES Add an entry to RELNOTES for r355677. 2019-12-13 16:28:48 +00:00
UPDATING Add an entry to UPDATING for r355677. 2019-12-12 23:33:32 +00:00

FreeBSD Source:

This is the top level of the FreeBSD source directory. This file was last revised on: FreeBSD

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html, and https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html for more information, including setting make(1) variables.

Source Roadmap:

bin		System/user commands.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

stand		Boot loader sources.

sys		Kernel sources.

sys/<arch>/conf Kernel configuration files. GENERIC is the configuration
		used in release builds. NOTES contains documentation of
		all possible entries.

tests		Regression tests which can be run by Kyua.  See tests/README
		for additional information.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see:

https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.html