summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xLedgerSMB/Auth/DB.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/Auth/DB.pm b/LedgerSMB/Auth/DB.pm
index 747d4d82..5b582bd3 100755
--- a/LedgerSMB/Auth/DB.pm
+++ b/LedgerSMB/Auth/DB.pm
@@ -141,7 +141,7 @@ sub session_create {
my $seedRandom = $dbh->prepare("SELECT setseed(?);");
my $fetchSequence =
- $dbh->prepare("SELECT nextval('session_session_id_seq'), md5(random());");
+ $dbh->prepare("SELECT nextval('session_session_id_seq'), md5(random()::text);");
my $createNew = $dbh->prepare(
"INSERT INTO session (session_id, users_id, token, transaction_id)