1
0
mirror of https://github.com/ilyakooo0/urbit.git synced 2024-12-21 05:41:43 +03:00
urbit/pkg/ent/ent.h
Benjamin Summers 9618f37965 Add 'pkg/ent/' from commit '31ac2913f14c6f7631f5792ad942605fb2d9fb87'
git-subtree-dir: pkg/ent
git-subtree-mainline: 1207c204cb
git-subtree-split: 31ac2913f1
2019-03-04 16:49:14 -08:00

14 lines
269 B
C

#pragma once
#include <stddef.h>
/*
Fills buf with high-quality entropy.
buflen is the number of bytes, no greater than 256.
Returns 0 on success. On failure, returns -1 and sets errno to
indicate the error.
*/
int ent_getentropy(void* buf, size_t buflen);