[llvm-commits] [test-suite] r72307 - /test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/gnugo/seed.c
Dan Gohman
gohman at apple.com
Fri May 22 19:01:50 PDT 2009
Author: djg
Date: Fri May 22 21:01:50 2009
New Revision: 72307
URL: http://llvm.org/viewvc/llvm-project?rev=72307&view=rev
Log:
Change this test's random seed to use a fixed value instead of using
gettimeofday.
Modified:
test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/gnugo/seed.c
Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/gnugo/seed.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/gnugo/seed.c?rev=72307&r1=72306&r2=72307&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/gnugo/seed.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/gnugo/seed.c Fri May 22 21:01:50 2009
@@ -33,6 +33,8 @@
70070,404 (CompuServe)
*/
+/* LLVM test-suite: Use a deterministic seed. */
+#if 0
/*
#define IBM 8086
*/
@@ -77,3 +79,12 @@
#endif
+#else
+
+void seed(int *i)
+/* start seed of random number generator for LLVM test-suite */
+ {
+ *i = 281701264; /* This number was chosen purely arbitrarily. */
+} /* end seed */
+
+#endif
More information about the llvm-commits
mailing list