Added matlab support.
Modified some c and cpp code to help.
This commit is contained in:
10
c/random.h
10
c/random.h
@@ -20,12 +20,20 @@ You should have received a copy of the GNU Lesser General Public License
|
||||
along with this code. If not, see <http:#www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "stdlib.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Returns size of random-number generator in bytes */
|
||||
size_t random_size(void);
|
||||
|
||||
/* Creates and initializes a new random-number generator */
|
||||
void * random_init(int seed);
|
||||
void * random_new(int seed);
|
||||
|
||||
/* Initializes a random-number generator */
|
||||
void random_init(void * r, int seed);
|
||||
|
||||
/* Make a copy of the specified random-number generator */
|
||||
void * random_copy(void * r);
|
||||
|
||||
Reference in New Issue
Block a user