Debian Codegraph @

src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/adapters/random_posix.c

raw
1 // Copyright (c) Microsoft. All rights reserved.
2 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
4 #ifdef __cplusplus
5 #include <cstdlib>
6 #else
7 #include <stdlib.h>
8 #endif
9
10 #include "azure_c_shared_utility/random.h"
11
12 void RANDOM_seed(unsigned int seed)
13 {
14 srandom(seed);
15 }
16
17 int RANDOM_generate(void)
18 {
19 return random();
20 }