@@ -162,7 +162,7 @@ init_seed(A) when is_integer(A)->
162162 % % node to set a reproductible but different seed for each launcher.
163163 Id = get_node_id (),
164164 ? DebugF (" Seeding with ~p on node ~p~n " ,[Id ,node ()]),
165- random :seed (1000 * Id ,- 1000 * A * Id ,1000 * A * A );
165+ rand :seed (1000 * Id ,- 1000 * A * Id ,1000 * A * A );
166166init_seed ({A ,B }) when is_integer (A ) and is_integer (B )->
167167 Id = get_node_id (),
168168 ? DebugF (" Seeding with ~p ~p ~p on node ~p~n " ,[A ,B ,Id ,node ()]),
@@ -171,9 +171,9 @@ init_seed({A,B}) when is_integer(A) and is_integer(B)->
171171 % % initial pseudo random values will be quite closed to each
172172 % % other. Trying to avoid this by using a multiplier big enough
173173 % % (because the algorithm use mod 30XXX , see random.erl).
174- random :seed (4000 * A * B * Id ,- 4000 * B * A * Id ,4000 * Id * Id * A );
174+ rand :seed (4000 * A * B * Id ,- 4000 * B * A * Id ,4000 * Id * Id * A );
175175init_seed ({A ,B ,C }) ->
176- random :seed (A ,B ,C ).
176+ rand :seed (A ,B ,C ).
177177
178178get_node_id () ->
179179 case string :tokens (atom_to_list (node ())," @" ) of
@@ -762,12 +762,12 @@ urandomstr(Size) when is_integer(Size), Size >= 0 ->
762762% % @end
763763% %----------------------------------------------------------------------
764764randomstr (Size ) when is_integer (Size ), Size >= 0 ->
765- lists :map (fun (_ ) -> random :uniform (25 ) + $a end , lists :seq (1 ,Size )).
765+ lists :map (fun (_ ) -> rand :uniform (25 ) + $a end , lists :seq (1 ,Size )).
766766
767767random_alphanumstr (Size ) when is_integer (Size ), Size >= 0 ->
768768 AllowedChars = " 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" ,
769769 S = length (AllowedChars ),
770- lists :map (fun (_ ) -> lists :nth (random :uniform (S ), AllowedChars ) end , lists :seq (1 ,Size )).
770+ lists :map (fun (_ ) -> lists :nth (rand :uniform (S ), AllowedChars ) end , lists :seq (1 ,Size )).
771771
772772% %----------------------------------------------------------------------
773773% % @spec randombinstr(Size::integer()) ->binary()
@@ -779,7 +779,7 @@ randombinstr(Size) when is_integer(Size), Size > 0 ->
779779 randombinstr (Size ,<<>>).
780780randombinstr (0 ,Bin ) -> Bin ;
781781randombinstr (Size ,Bin ) ->
782- C = random :uniform (25 )+ $a ,
782+ C = rand :uniform (25 )+ $a ,
783783 randombinstr (Size - 1 , << Bin /binary , C >>).
784784
785785
0 commit comments