mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
805 B
28 lines
805 B
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
using System;
|
|
|
|
namespace LoadTest.Utils
|
|
{
|
|
public static class RandomString
|
|
{
|
|
private static readonly Random Random = new Random();
|
|
|
|
public static string Create(int length)
|
|
{
|
|
var chars = new char[length];
|
|
|
|
for (var i = 0; i < length; i++)
|
|
{
|
|
chars[i] = (char)Random.Next(48, 122);
|
|
}
|
|
|
|
return new string(chars);
|
|
}
|
|
}
|
|
}
|
|
|