getrandom.c 350 B

1234567891011121314
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * getrandom() for uClibc
  4. *
  5. * Copyright (C) 2015 Bernhard Reutner-Fischer
  6. *
  7. * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
  8. */
  9. #include <sys/syscall.h>
  10. #include <sys/random.h>
  11. #ifdef __NR_getrandom
  12. _syscall3(int, getrandom, void *, buf, size_t, buflen, unsigned int, flags)
  13. #endif