New padding.

This commit is contained in:
retoor 2025-01-29 00:33:11 +01:00
parent 84e5bac1b9
commit 284d38096c

15
src/snek/service/util.py Normal file
View File

@ -0,0 +1,15 @@
import random
from snek.system.service import BaseService
class UtilService(BaseService):
async def random_light_hex_color(self):
r = random.randint(128, 255)
g = random.randint(128, 255)
b = random.randint(128, 255)
return "#{:02x}{:02x}{:02x}".format(r, g, b)