Is it possible to use keyHash without the random seed per MATLAB session?

7 visualizaciones (últimos 30 días)
Joris
Joris el 17 de Abr. de 2025
Comentada: Joris el 18 de Abr. de 2025
We have recently discovered the keyHash function, which would simplify our code quiet a bit. However, this function has the property that results will not be reproducible over MATLAB sessions or parallel workers. For our needs we need it to be reproducible over the parallel workers. Is there potentially a way that we can use the keyHash function without the random seed per MATLAB session behavior.

Respuestas (1)

Mike Croucher
Mike Croucher el 17 de Abr. de 2025
I'm afraid not, can you tell us more about your workflow?
When you look across various other languages, no one seems to guarantee reproducible hashes between sessions.
  1 comentario
Joris
Joris el 18 de Abr. de 2025
We currently use this to compress the keys for a dictionary, which we like to have reusable over the parallel workers.

Iniciar sesión para comentar.

Categorías

Más información sobre Call Python from MATLAB en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by