srowen commented on a change in pull request #26911: 
[WIP][SPARK-30272][SQL][CORE] Remove usage of Guava that breaks in 27; replace 
with workalikes
URL: https://github.com/apache/spark/pull/26911#discussion_r358417986
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/util/Utils.scala
 ##########
 @@ -2810,7 +2809,7 @@ private[spark] object Utils extends Logging {
     val rnd = new SecureRandom()
     val secretBytes = new Array[Byte](bits / JByte.SIZE)
     rnd.nextBytes(secretBytes)
-    HashCodes.fromBytes(secretBytes).toString()
+    Integer.toHexString(Arrays.hashCode(secretBytes))
 
 Review comment:
   Oops, I need to fix this. It didn't actually hash the byte array before, 
just rendered as hex. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to