src/Tools/random_word.ML
changeset 32740 9dd0a2f83429
parent 30161 c26e515f1c29
child 33513 b2259183e282
--- a/src/Tools/random_word.ML	Tue Sep 29 14:59:24 2009 +0200
+++ b/src/Tools/random_word.ML	Tue Sep 29 16:24:36 2009 +0200
@@ -35,8 +35,8 @@
 val a = 0w777138309;
 fun step x = Word.andb (a * x + 0w1, max_word);
 
-local val rand = ref 0w1
-in fun next_word () = (change rand step; ! rand) end;
+local val rand = Unsynchronized.ref 0w1
+in fun next_word () = (Unsynchronized.change rand step; ! rand) end;
 
 (*NB: higher bits are more random than lower ones*)
 fun next_bool () = Word.andb (next_word (), top_bit) = 0w0;