libcdsb/tests/include/random.h

38 lines
979 B
C
Raw Normal View History

2022-06-02 18:41:06 +00:00
/* This software is licensed by the MIT License, see LICENSE file */
/* Copyright © 2022 Gregory Lirent */
#include "../../include/vtype.h"
2022-06-09 08:39:19 +00:00
#include "../../src/__internal/vnode.h"
2022-06-02 18:41:06 +00:00
#ifndef LIBCDSB_TESTS_RANDOM_H
#define LIBCDSB_TESTS_RANDOM_H
2022-06-09 08:39:19 +00:00
typedef struct {
var_t value[1];
vtype type;
} value_t;
2022-06-02 18:41:06 +00:00
extern int random_init(int argc, char** argv);
extern vtype_bool random_boolean();
extern vtype_float random_float();
extern vtype_double random_double();
extern vtype_ldouble random_ldouble();
extern vtype_uint8 random_uint8();
extern vtype_uint16 random_uint16();
extern vtype_uint32 random_uint32();
extern vtype_uint64 random_uint64();
extern vtype_int8 random_int8();
extern vtype_int16 random_int16();
extern vtype_int32 random_int32();
extern vtype_int64 random_int64();
2022-06-03 16:29:06 +00:00
extern char random_ascii_char();
extern unsigned int random_unicode_symbol();
2022-06-09 08:39:19 +00:00
extern value_t random_value();
2022-06-02 18:41:06 +00:00
#endif /* LIBCDSB_TESTS_RANDOM_H */