summaryrefslogtreecommitdiffstats
path: root/include/c/rand/rand/srand.h
blob: 2fbb19361cd5d8ee524e5942fc8b197ebe4e8215 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2022 Alejandro Colomar <alx@kernel.org>
// SPDX-License-Identifier:  LGPL-3.0-or-later WITH LGPL-3.0-linking-exception


#ifndef INCLUDE_C_RAND_RAND_SRAND_H_
#define INCLUDE_C_RAND_RAND_SRAND_H_


#include <stdlib.h>


#pragma clang assume_nonnull begin
inline void c_srand(unsigned int seed);


inline void
c_srand(unsigned int seed)
{
	srand(seed);
}
#pragma clang assume_nonnull end


#endif  // Header guard