]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit321085cde66b098873a9cbe6d8aa6be484393d47
treeab3b795f7ff1765d2f7dbb318b5fae08945a0bdf
parent19d969e0a24cb19131779285dde2f5c3b67b12cc
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