net: move net_get_random_once to lib
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Wed, 7 Oct 2015 23:20:35 +0000 (01:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Oct 2015 12:26:35 +0000 (05:26 -0700)
commit46234253b9363894a254844a6550b4cc5f3edfe8
treeab3b795f7ff1765d2f7dbb318b5fae08945a0bdf
parent28335a7445202a3d118145a07d9138e9881ebe18
net: move net_get_random_once to lib

There's no good reason why users outside of networking should not
be using this facility, f.e. for initializing their seeds.

Therefore, make it accessible from there as get_random_once().

Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/net.h
include/linux/once.h [new file with mode: 0644]
lib/Makefile
lib/once.c [new file with mode: 0644]
net/core/utils.c