Change nextInt/Long with range parameters from members to extensions

We'd like to fix the implementation of these methods, so we could intrinsify them later
or perform other optimizations that are not possible when these methods are open.
This commit is contained in:
Ilya Gorbunov
2018-09-12 21:37:46 +03:00
parent 928fe19801
commit 7e0a658de7
2 changed files with 34 additions and 37 deletions
@@ -3916,11 +3916,9 @@ public abstract class kotlin/random/Random {
public fun nextInt ()I
public fun nextInt (I)I
public fun nextInt (II)I
public fun nextInt (Lkotlin/ranges/IntRange;)I
public fun nextLong ()J
public fun nextLong (J)J
public fun nextLong (JJ)J
public fun nextLong (Lkotlin/ranges/LongRange;)J
}
public final class kotlin/random/Random$Companion : kotlin/random/Random {
@@ -3936,16 +3934,16 @@ public final class kotlin/random/Random$Companion : kotlin/random/Random {
public fun nextInt ()I
public fun nextInt (I)I
public fun nextInt (II)I
public fun nextInt (Lkotlin/ranges/IntRange;)I
public fun nextLong ()J
public fun nextLong (J)J
public fun nextLong (JJ)J
public fun nextLong (Lkotlin/ranges/LongRange;)J
}
public final class kotlin/random/RandomKt {
public static final fun Random (I)Lkotlin/random/Random;
public static final fun Random (J)Lkotlin/random/Random;
public static final fun nextInt (Lkotlin/random/Random;Lkotlin/ranges/IntRange;)I
public static final fun nextLong (Lkotlin/random/Random;Lkotlin/ranges/LongRange;)J
public static final fun nextUBytes (Lkotlin/random/Random;I)[B
public static final fun nextUBytes-EVgfTAA (Lkotlin/random/Random;[B)[B
public static final fun nextUBytes-Wvrt4B4 (Lkotlin/random/Random;[BII)[B