mirror of
https://github.com/bitwarden/server
synced 2025-12-24 04:03:25 +00:00
Fixup user mangling
This commit is contained in:
14
util/Seeder/MangleId.cs
Normal file
14
util/Seeder/MangleId.cs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user