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:
Sebastian Wilhelmi
2002-11-26 14:09:00 +00:00
committed by Sebastian Wilhelmi
parent 17344bb1e4
commit c838b2a071
16 changed files with 281 additions and 50 deletions

View File

@@ -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