root/opal/mca/pmix/pmix4x/pmix/src/util/alfg.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Copyright (c) 2014      Mellanox Technologies, Inc.
   3  *                         All rights reserved.
   4  * Copyright (c) 2014      Cisco Systems, Inc.  All rights reserved.
   5  * Copyright (c) 2014-2017 Intel, Inc.  All rights reserved.
   6  * $COPYRIGHT$
   7  *
   8  * Additional copyrights may follow
   9  *
  10  * $HEADER$
  11  */
  12 
  13 #ifndef PMIX_ALFG_H
  14 #define PMIX_ALFG_H
  15 
  16 #include <src/include/pmix_config.h>
  17 #include <pmix_common.h>
  18 
  19 #include "src/include/pmix_stdint.h"
  20 
  21 
  22 struct pmix_rng_buff_t {
  23     uint32_t alfg[127];
  24     int tap1;
  25     int tap2;
  26 };
  27 typedef struct pmix_rng_buff_t pmix_rng_buff_t;
  28 
  29 
  30 /* NOTE: UNLIKE OTHER PMIX FUNCTIONS, THIS FUNCTION RETURNS A 1 IF
  31  * SUCCESSFUL INSTEAD OF PMIX_SUCCESS */
  32 PMIX_EXPORT int pmix_srand(pmix_rng_buff_t *buff, uint32_t seed);
  33 
  34 PMIX_EXPORT uint32_t pmix_rand(pmix_rng_buff_t *buff);
  35 
  36 PMIX_EXPORT int pmix_random(void);
  37 
  38 #endif /* PMIX_ALFG_H */

/* [<][>][^][v][top][bottom][index][help] */