Update GRand annotations

This commit is contained in:
badcel 2023-09-11 11:33:47 +02:00
parent a4a356e137
commit 47c7eda5e0
No known key found for this signature in database
GPG Key ID: 70A8373EEB2233E0

View File

@ -170,12 +170,12 @@ struct _GRand
}; };
/** /**
* g_rand_new_with_seed: * g_rand_new_with_seed: (constructor)
* @seed: a value to initialize the random number generator * @seed: a value to initialize the random number generator
* *
* Creates a new random number generator initialized with @seed. * Creates a new random number generator initialized with @seed.
* *
* Returns: the new #GRand * Returns: (transfer full): the new #GRand
**/ **/
GRand* GRand*
g_rand_new_with_seed (guint32 seed) g_rand_new_with_seed (guint32 seed)
@ -186,14 +186,14 @@ g_rand_new_with_seed (guint32 seed)
} }
/** /**
* g_rand_new_with_seed_array: * g_rand_new_with_seed_array: (constructor)
* @seed: an array of seeds to initialize the random number generator * @seed: an array of seeds to initialize the random number generator
* @seed_length: an array of seeds to initialize the random number * @seed_length: an array of seeds to initialize the random number
* generator * generator
* *
* Creates a new random number generator initialized with @seed. * Creates a new random number generator initialized with @seed.
* *
* Returns: the new #GRand * Returns: (transfer full): the new #GRand
* *
* Since: 2.4 * Since: 2.4
*/ */
@ -207,7 +207,7 @@ g_rand_new_with_seed_array (const guint32 *seed,
} }
/** /**
* g_rand_new: * g_rand_new: (constructor)
* *
* Creates a new random number generator initialized with a seed taken * Creates a new random number generator initialized with a seed taken
* either from `/dev/urandom` (if existing) or from the current time * either from `/dev/urandom` (if existing) or from the current time
@ -215,7 +215,7 @@ g_rand_new_with_seed_array (const guint32 *seed,
* *
* On Windows, the seed is taken from rand_s(). * On Windows, the seed is taken from rand_s().
* *
* Returns: the new #GRand * Returns: (transfer full): the new #GRand
*/ */
GRand* GRand*
g_rand_new (void) g_rand_new (void)
@ -310,7 +310,7 @@ g_rand_free (GRand *rand)
* This way you can take a snapshot of the random number generator for * This way you can take a snapshot of the random number generator for
* replaying later. * replaying later.
* *
* Returns: the new #GRand * Returns: (transfer full): the new #GRand
* *
* Since: 2.4 * Since: 2.4
*/ */