HttpServer working with GET routes
This commit is contained in:
9
Web/WebSocket/websocket/server/src/lang/Strings.ts
Normal file
9
Web/WebSocket/websocket/server/src/lang/Strings.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export default class Strings {
|
||||
public static randomString(length: number): string {
|
||||
return (Date.now().toString(36) + Math.random().toString(36).substring(2)).substring(0, length);
|
||||
}
|
||||
|
||||
private constructor() {
|
||||
throw new Error('Strings is a static class that may not be instantiated');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user