FIX random:uniform accept only integer (float previously).
authorGreg Burri <greg.burri@gmail.com>
Thu, 16 Jul 2009 17:51:48 +0000 (17:51 +0000)
committerGreg Burri <greg.burri@gmail.com>
Thu, 16 Jul 2009 17:51:48 +0000 (17:51 +0000)
VERSION
modules/erl/euphorik_protocole.erl

diff --git a/VERSION b/VERSION
index 314c3d7..ab67981 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.1.5
\ No newline at end of file
+1.1.6
\ No newline at end of file
index a61d0c8..947a18b 100755 (executable)
@@ -103,7 +103,7 @@ loginUser(User, IP) ->
 generer_cookie() ->\r
    {A1, A2, A3} = now(),\r
    random:seed(A1, A2, A3),\r
-   erlang:integer_to_list(random:uniform(math:pow(10, 32)), 36).\r
+   erlang:integer_to_list(random:uniform(trunc(math:pow(10, 32))), 36).\r
 \r
 \r
 % Modification du profile.\r