From 47c7eda5e08d0c175194fb5e9bb90a2c10acd116 Mon Sep 17 00:00:00 2001 From: badcel <33569-badcel@users.noreply.gitlab.gnome.org> Date: Mon, 11 Sep 2023 11:33:47 +0200 Subject: [PATCH] Update GRand annotations --- glib/grand.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/glib/grand.c b/glib/grand.c index 5fb44576d..dc4b84252 100644 --- a/glib/grand.c +++ b/glib/grand.c @@ -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 * * Creates a new random number generator initialized with @seed. * - * Returns: the new #GRand + * Returns: (transfer full): the new #GRand **/ GRand* 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_length: an array of seeds to initialize the random number * generator * * Creates a new random number generator initialized with @seed. * - * Returns: the new #GRand + * Returns: (transfer full): the new #GRand * * 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 * 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(). * - * Returns: the new #GRand + * Returns: (transfer full): the new #GRand */ GRand* 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 * replaying later. * - * Returns: the new #GRand + * Returns: (transfer full): the new #GRand * * Since: 2.4 */