blob: 66f5e71feaa007e4191b6f5987c8bef9285d67de [file] [log] [blame]
// Copyright 2016 The Fuchsia Authors
// Copyright (c) 2008-2014 Travis Geiselbrecht
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#ifndef __RAND_H
#define __RAND_H
#include <magenta/compiler.h>
#include <sys/types.h>
__BEGIN_CDECLS;
int rand(void);
void srand(unsigned int seed);
/* non standard extension to add some entropy to the seed */
void rand_add_entropy(const void *buf, size_t len);
__END_CDECLS;
#endif