X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeschedrand.c;h=8fc409edd5f96158cc1a516f44e732bd221ac7e8;hb=d14c6378674f36728eacaf5dc7e4bb045ff9fbab;hp=8524abb2ca54150bf02e6b78c3c87fc8153f154f;hpb=c5e94f039082de17df10b34a3445c15c0af12f71;p=libfirm diff --git a/ir/be/beschedrand.c b/ir/be/beschedrand.c index 8524abb2c..8fc409edd 100644 --- a/ir/be/beschedrand.c +++ b/ir/be/beschedrand.c @@ -1,9 +1,12 @@ /** * Trivial node selector. - * @author Christian Wuerdig + * @author Matthias Braun * @date 29.08.2006 * @cvs-id $Id$ */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include @@ -53,7 +56,10 @@ static ir_node *random_select(void *block_env, nodeset *ready_set, nodeset *live static void *random_init_graph(const list_sched_selector_t *vtab, const arch_env_t *arch_env, ir_graph *irg) { - srand(time(0)); + /* Using time(NULL) as a seed here gives really random results, + but is NOT deterministic which makes debugging impossible. + Moreover no-one want non-deterministic compilers ... */ + srand(0x4711); return (void *)arch_env; }