Skip to content

Commit ce1ff31

Browse files
committed
fix: ints are 32bits max and positive
1 parent 678d777 commit ce1ff31

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

doc/changelog.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ Changelog
44
[0.2.5] - 2026-01-01
55
--------------------
66

7+
Changed
8+
^^^^^^^
9+
- Random integers are 32bits and positive.
10+
11+
[0.2.5] - 2026-01-01
12+
--------------------
13+
714
Changed
815
^^^^^^^
916
- Use scim2-models native path management.

scim2_tester/filling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def generate_random_value(
9696
value = "".join(str(random.choice(range(10))) for _ in range(10))
9797

9898
elif field_type is int:
99-
value = uuid.uuid4().int
99+
value = random.randint(0, 2**31 - 1)
100100

101101
elif field_type is bool:
102102
value = random.choice([True, False])

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)