Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 10:47:27

0001 /*
0002  * Copyright (c) 2014      Mellanox Technologies, Inc.
0003  *                         All rights reserved.
0004  * Copyright (c) 2014      Cisco Systems, Inc.  All rights reserved.
0005  * Copyright (c) 2014-2020 Intel, Inc.  All rights reserved.
0006  * Copyright (c) 2021-2022 Nanook Consulting.  All rights reserved.
0007  * $COPYRIGHT$
0008  *
0009  * Additional copyrights may follow
0010  *
0011  * $HEADER$
0012  */
0013 
0014 #ifndef PMIX_ALFG_H
0015 #define PMIX_ALFG_H
0016 
0017 #include "src/include/pmix_config.h"
0018 #include "pmix_common.h"
0019 
0020 #include "src/include/pmix_stdint.h"
0021 
0022 struct pmix_rng_buff_t {
0023     uint32_t alfg[127];
0024     int tap1;
0025     int tap2;
0026 };
0027 typedef struct pmix_rng_buff_t pmix_rng_buff_t;
0028 
0029 /* NOTE: UNLIKE OTHER PMIX FUNCTIONS, THIS FUNCTION RETURNS A 1 IF
0030  * SUCCESSFUL INSTEAD OF PMIX_SUCCESS */
0031 PMIX_EXPORT int pmix_srand(pmix_rng_buff_t *buff, uint32_t seed);
0032 
0033 PMIX_EXPORT uint32_t pmix_rand(pmix_rng_buff_t *buff);
0034 
0035 PMIX_EXPORT int pmix_random(void);
0036 
0037 #endif /* PMIX_ALFG_H */