2014-02-24 01:41:38 +04:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2014 Mellanox Technologies, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ALFG_H
|
|
|
|
#define ALFG_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "opal_config.h"
|
|
|
|
|
2014-02-25 03:18:35 +04:00
|
|
|
struct opal_rng_buff_t {
|
|
|
|
uint32_t alfg[127];
|
2014-02-24 01:41:38 +04:00
|
|
|
int tap1;
|
|
|
|
int tap2;
|
|
|
|
};
|
2014-02-25 03:18:35 +04:00
|
|
|
typedef struct opal_rng_buff_t opal_rng_buff_t;
|
2014-02-24 01:41:38 +04:00
|
|
|
|
|
|
|
|
2014-02-25 03:18:35 +04:00
|
|
|
int opal_srand(opal_rng_buff_t *buff, uint32_t seed);
|
2014-02-24 01:41:38 +04:00
|
|
|
|
2014-02-25 03:18:35 +04:00
|
|
|
uint32_t opal_rand(opal_rng_buff_t *buff);
|
2014-02-24 01:41:38 +04:00
|
|
|
|
|
|
|
#endif /* ALFG_H */
|