MCPcopy Create free account
hub / github.com/F-Stack/f-stack / key_random

Function key_random

freebsd/netipsec/key.c:4741–4748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4739}
4740
4741u_long
4742key_random()
4743{
4744 u_long value;
4745
4746 arc4random_buf(&value, sizeof(value));
4747 return value;
4748}
4749
4750/*
4751 * map SADB_SATYPE_* to IPPROTO_*.

Callers 1

key_do_getnewspiFunction · 0.85

Calls 1

arc4random_bufFunction · 0.50

Tested by

no test coverage detected