mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-24 10:12:53 +02:00
lint
This commit is contained in:
@@ -4,8 +4,5 @@ import { getRandomByte } from "./helpers/getRandomByte";
|
||||
* Generate a random IP address
|
||||
* Does not check to see if the IP already exists in the game
|
||||
*/
|
||||
export function createRandomIp(): string {
|
||||
const ip: string = getRandomByte(99) + "." + getRandomByte(9) + "." + getRandomByte(9) + "." + getRandomByte(9);
|
||||
|
||||
return ip;
|
||||
}
|
||||
export const createRandomIp = (): string =>
|
||||
`${getRandomByte(99)}.${getRandomByte(9)}.${getRandomByte(9)}.${getRandomByte(9)}`;
|
||||
|
||||
Reference in New Issue
Block a user