소스 검색

Fix multi_app_default_dirs test on windows.

Seed random with erlang:now() because os:timestamp precision is not enough
on windows.
pull/489/head
Viacheslav Kovalev 10 년 전
committed by Daniel Widgren
부모
커밋
701f66aab2
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      test/rebar_test_utils.erl

+ 2
- 2
test/rebar_test_utils.erl 파일 보기

@ -105,12 +105,12 @@ create_config(AppDir, Contents) ->
%% @doc Util to create a random variation of a given name.
create_random_name(Name) ->
random:seed(os:timestamp()),
random:seed(erlang:now()),
Name ++ erlang:integer_to_list(random:uniform(1000000)).
%% @doc Util to create a random variation of a given version.
create_random_vsn() ->
random:seed(os:timestamp()),
random:seed(erlang:now()),
lists:flatten([erlang:integer_to_list(random:uniform(100)),
".", erlang:integer_to_list(random:uniform(100)),
".", erlang:integer_to_list(random:uniform(100))]).

불러오는 중...
취소
저장