1
0
mirror of https://github.com/bitwarden/server synced 2025-12-24 04:03:25 +00:00

Fixup user mangling

This commit is contained in:
Matt Gibson
2025-10-09 17:53:11 -07:00
parent 9c4c88fa34
commit 13d666a8b0
3 changed files with 21 additions and 3 deletions

14
util/Seeder/MangleId.cs Normal file
View File

@@ -0,0 +1,14 @@
namespace Bit.Seeder;
public class MangleId
{
public readonly string Value;
public MangleId()
{
// Generate a short random string (6 char) to use as the mangle ID
Value = Random.Shared.NextInt64().ToString("x").Substring(0, 8);
}
public override string ToString() => Value;
}