Blender V5.3
rand.cc File Reference
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <random>
#include "MEM_guardedalloc.h"
#include "BLI_bitmap.hh"
#include "BLI_compiler_compat.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_noise_c.hh"
#include "BLI_rand.hh"
#include "BLI_rand_c.hh"
#include "BLI_sys_types.hh"
#include "BLI_threads.hh"
#include "BLI_strict_flags.hh"

Go to the source code of this file.

Classes

struct  blender::RNG
struct  blender::RNG_THREAD_ARRAY

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define hash   BLI_noise_hash_uchar_512

Functions

struct RNG * blender::BLI_rng_new (unsigned int seed)
struct RNG * blender::BLI_rng_new_srandom (unsigned int seed)
void blender::BLI_rng_free (struct RNG *rng) ATTR_NONNULL(1)
void blender::BLI_rng_seed (struct RNG *rng, unsigned int seed) ATTR_NONNULL(1)
void blender::BLI_rng_srandom (struct RNG *rng, unsigned int seed) ATTR_NONNULL(1)
void blender::BLI_rng_get_char_n (RNG *rng, char *bytes, size_t bytes_len) ATTR_NONNULL(1
void int blender::BLI_rng_get_int (struct RNG *rng) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
unsigned int blender::BLI_rng_get_uint (struct RNG *rng) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
double blender::BLI_rng_get_double (struct RNG *rng) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
float blender::BLI_rng_get_float (struct RNG *rng) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void blender::BLI_rng_get_tri_sample_float_v2 (struct RNG *rng, const float v1[2], const float v2[2], const float v3[2], float r_pt[2]) ATTR_NONNULL()
void blender::BLI_rng_shuffle_array (struct RNG *rng, void *data, unsigned int elem_size_i, unsigned int elem_num) ATTR_NONNULL(1
void void blender::BLI_rng_shuffle_bitmap (struct RNG *rng, unsigned int *bitmap, unsigned int bits_num) ATTR_NONNULL(1
void void void blender::BLI_rng_skip (struct RNG *rng, int n) ATTR_NONNULL(1)
float blender::BLI_hash_frand (unsigned int seed) ATTR_WARN_UNUSED_RESULT
void blender::BLI_array_randomize (void *data, unsigned int elem_size, unsigned int elem_num, unsigned int seed)
void blender::BLI_bitmap_randomize (unsigned int *bitmap, unsigned int bits_num, unsigned int seed) ATTR_NONNULL(1)
RNG_THREAD_ARRAY * blender::BLI_rng_threaded_new ()
void blender::BLI_rng_threaded_free (struct RNG_THREAD_ARRAY *rngarr) ATTR_NONNULL(1)
int blender::BLI_rng_thread_rand (RNG_THREAD_ARRAY *rngarr, int thread) ATTR_WARN_UNUSED_RESULT
BLI_INLINE double blender::halton_ex (double invprimes, double *offset)
void blender::BLI_halton_1d (unsigned int prime, double offset, int n, double *r)
void blender::BLI_halton_2d (const unsigned int prime[2], double offset[2], int n, double *r)
void blender::BLI_halton_3d (const unsigned int prime[3], double offset[3], int n, double *r)
BLI_INLINE double blender::radical_inverse (uint n)
void blender::BLI_hammersley_1d (unsigned int n, double *r)

Macro Definition Documentation

◆ hash

#define hash   BLI_noise_hash_uchar_512

Definition at line 30 of file rand.cc.