1 // Copyright 2016 The Fuchsia Authors 2 // Copyright (c) 2008-2014 Travis Geiselbrecht 3 // 4 // Use of this source code is governed by a MIT-style 5 // license that can be found in the LICENSE file or at 6 // https://opensource.org/licenses/MIT 7 8 #pragma once 9 10 #include <zircon/compiler.h> 11 #include <sys/types.h> 12 13 __BEGIN_CDECLS 14 15 #define RAND_MAX (0x7fffffff) 16 17 int rand(void); 18 void srand(unsigned int seed); 19 20 __END_CDECLS 21