allow seperate random instances
[vg.git] / vg.h
diff --git a/vg.h b/vg.h
index 3ce5a462642ab62d75b89735d330df670239a9c9..04578f7c81a5c7c53bef107079a6642cb180cf36 100644 (file)
--- a/vg.h
+++ b/vg.h
@@ -175,6 +175,8 @@ struct vg{
 
    float loader_ring;
    GLuint tex_missing;
+
+   vg_rand rand;
 }
 static vg = { .time_rate = 1.0 };
 const char *vg_get_basepath(void){
@@ -842,9 +844,8 @@ static void _vg_terminate(void)
    exit(0);
 }
 
-static void vg_enter( int argc, char *argv[], const char *window_name )
-{
-   vg_rand_seed( 461 );
+static void vg_enter( int argc, char *argv[], const char *window_name ){
+   vg_rand_seed( &vg.rand, 461 );
    _vg_process_launch_opts_internal( argc, argv );
 
    /* Systems init */