From 19ce1d493ae7cbc1e704d338077b1f5f5e5769c9 Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Mon, 22 Feb 2021 23:37:14 -0800 Subject: [PATCH] Fixed typo in django/db/backends/sqlite3/base.py comment. --- django/db/backends/sqlite3/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index 32d767878e..a0b32d25d5 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -251,7 +251,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): create_deterministic_function('SQRT', 1, none_guard(math.sqrt)) create_deterministic_function('TAN', 1, none_guard(math.tan)) # Don't use the built-in RANDOM() function because it returns a value - # in the range [2^63, 2^63 - 1] instead of [0, 1). + # in the range [-1 * 2^63, 2^63 - 1] instead of [0, 1). conn.create_function('RAND', 0, random.random) conn.create_aggregate('STDDEV_POP', 1, list_aggregate(statistics.pstdev)) conn.create_aggregate('STDDEV_SAMP', 1, list_aggregate(statistics.stdev))