File tree Expand file tree Collapse file tree
core/src/main/scala/org/apache/spark/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ import _root_.io.netty.channel.unix.Errors.NativeIoException
4747import com .google .common .cache .{CacheBuilder , CacheLoader , LoadingCache }
4848import com .google .common .io .{ByteStreams , Files => GFiles }
4949import com .google .common .net .InetAddresses
50+ import org .apache .commons .codec .binary .Hex
5051import org .apache .commons .lang3 .SystemUtils
5152import org .apache .hadoop .conf .Configuration
5253import org .apache .hadoop .fs .{FileSystem , FileUtil , Path }
@@ -2809,7 +2810,7 @@ private[spark] object Utils extends Logging {
28092810 val rnd = new SecureRandom ()
28102811 val secretBytes = new Array [Byte ](bits / JByte .SIZE )
28112812 rnd.nextBytes(secretBytes)
2812- Integer .toHexString( Arrays .hashCode( secretBytes) )
2813+ Hex .encodeHexString( secretBytes)
28132814 }
28142815
28152816 /**
You can’t perform that action at this time.
0 commit comments