mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-04 22:59:42 +02:00
fix sleeve memory bug
This commit is contained in:
+1
-8
@@ -5,14 +5,7 @@ import { getRandomByte } from "./helpers/getRandomByte";
|
||||
* 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);
|
||||
const ip: string = getRandomByte(99) + "." + getRandomByte(9) + "." + getRandomByte(9) + "." + getRandomByte(9);
|
||||
|
||||
return ip;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user