mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-28 11:54:15 +02:00
Improved the seeding algorithm. Old behaviour can be achived by setting
2002-11-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * glib/grand.c, gthread/gthread-impl.c, tests/rand-test.c: Improved the seeding algorithm. Old behaviour can be achived by setting envvar G_RANDOM_VERSION to "2.0". (#99262) * docs/reference/glib/glib-docs.sgml, docs/reference/glib/Makefile.am: Renamed docs/reference/glib/changes-2.0.sgml to docs/reference/glib/changes.sgml and added section for changes from 2.0 to 2.2 (Also corrected 1.0 to 1.2). * README.in, docs/reference/glib/running.sgml, docs/reference/glib/tmpl/random_numbers.sgml, docs/reference/glib/changes.sgml: Added notes about the new seeding algorithm.
This commit is contained in:
committed by
Sebastian Wilhelmi
parent
17344bb1e4
commit
c838b2a071
@@ -66,6 +66,7 @@ void g_mutex_init (void);
|
||||
void g_mem_init (void);
|
||||
void g_messages_init (void);
|
||||
void g_convert_init (void);
|
||||
void g_rand_init (void);
|
||||
void g_main_thread_init (void);
|
||||
|
||||
#define G_MUTEX_DEBUG_INFO(mutex) (*((gpointer*)(((char*)mutex)+G_MUTEX_SIZE)))
|
||||
@@ -382,6 +383,7 @@ g_thread_init (GThreadFunctions* init)
|
||||
g_mem_init ();
|
||||
g_messages_init ();
|
||||
g_convert_init ();
|
||||
g_rand_init ();
|
||||
g_main_thread_init ();
|
||||
|
||||
/* now we can set g_threads_got_initialized and thus enable
|
||||
|
Reference in New Issue
Block a user