Merge pull request #17604 from Azoy/moar-random-improvements

[stdlib] Remove _random() customization point
diff --git a/stdlib/public/core/Integers.swift.gyb b/stdlib/public/core/Integers.swift.gyb
index 75c9bba..99ad000 100644
--- a/stdlib/public/core/Integers.swift.gyb
+++ b/stdlib/public/core/Integers.swift.gyb
@@ -2421,10 +2421,6 @@
 ${assignmentOperatorComment(x.operator, False)}
   static func ${x.operator}=(_ lhs: inout Self, _ rhs: Self)
 % end
-
-  static func _random<R: RandomNumberGenerator>(
-    using generator: inout R
-  ) -> Self
 }
 
 extension FixedWidthInteger {
@@ -2962,6 +2958,7 @@
 }
 
 extension FixedWidthInteger {
+  @inlinable
   public static func _random<R: RandomNumberGenerator>(
     using generator: inout R
   ) -> Self {
@@ -3972,17 +3969,6 @@
 }
 % end
 
-extension ${Self} {
-  @inlinable
-  public static func _random<R: RandomNumberGenerator>(
-    using generator: inout R
-  ) -> ${Self} {
-    var result: ${Self} = 0
-    withUnsafeMutableBytes(of: &result) { generator._fill(bytes: $0) }
-    return result
-  }
-}
-
 //===--- end of FIXME(integers) -------------------------------------------===//
 
 % end # end of concrete FixedWidthInteger section