diff --git a/include/trng.h b/include/trng.h new file mode 100644 index 0000000000..fe1c96825e --- /dev/null +++ b/include/trng.h @@ -0,0 +1,22 @@ +/* Copyright 2015 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ +#ifndef __EC_INCLUDE_TRNG_H +#define __EC_INCLUDE_TRNG_H + +/** + * Initialize the true random number generator. + * + * Not supported by all platforms. + **/ +void init_trng(void); + +/** + * Retrieve a 32 bit random value. + * + * Not supported on all platforms. + **/ +uint32_t rand(void); + +#endif /* __EC_INCLUDE_TRNG_H */